# 2d - Connect to Kucoin

{% hint style="success" %}
Ensure you have **read and understood** the required prerequisites before continuing.\
Please refer to **the "Must-knows" page** in the left menu.
{% endhint %}

Follow the steps below to configure a [**Kucoin** ](https://www.kucoin.com/r/af/QBA35AKL)**account** and enable **automated management** of your funds.

### Before proceeding, ensure that your SPOT wallet contains <mark style="background-color:green;">only USDT.</mark>

## 1. Main Account Synchronization

1. **Log in to your** [**Kucoin**](https://www.kucoin.com/r/af/QBA35AKL) **account.**
2. In the [**Asset Overview tab**](https://www.kucoin.com/assets), ensure that the funds allocated to our automated strategy are in the **trading account** and not in the **funding account**.
3. [Click here](https://www.kucoin.com/account/api) to access the page for generating **new API keys**.
4. Next, click on the **Create API** button.
5. In the **API-based Trading** section, label your key by naming it **CryptoTrader**, then add **CryptoTrader#100** for the API's Passphrase:

<figure><img src="https://139071599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoLzoLpI4GbFaDN6waLrV%2Fuploads%2FWeL8sGwXVoeddpkOXnWH%2FENAPIname.png?alt=media&#x26;token=884fe207-6b55-4647-b0cf-fce2431b75ea" alt=""><figcaption></figcaption></figure>

5. Check only the **Spot Trading** box in the API restrictions:

<figure><img src="https://139071599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoLzoLpI4GbFaDN6waLrV%2Fuploads%2FvPROXNlWnqxMD2aKUqMX%2FENAPIRestric.png?alt=media&#x26;token=f5b230f1-cfc2-4be8-9977-25a25031040f" alt=""><figcaption></figcaption></figure>

6. Click on **Yes** in the **IP Restriction**, then add the following **two IP addresses**, separating them with a comma. Then click on **Add**:
   * `35.195.13.37`
   * `89.184.13.176`

<figure><img src="https://139071599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoLzoLpI4GbFaDN6waLrV%2Fuploads%2F7pRwJOl4wsEZ8v3Jj9lJ%2Ftelegram-cloud-photo-size-4-5951797810456282710-x.jpg?alt=media&#x26;token=8d4a1192-71c8-4fd8-a614-cdbd2a9185b8" alt=""><figcaption></figcaption></figure>

7. Click on **Next**.

Your API keys have been successfully generated. Before proceeding to the final step located in the left menu of this documentation under the section '**3 - Link to CryptoTrader', please make sure to keep the window containing the newly created public and private keys open, or copy them into a temporary file.**

## Synchronizing a Sub-Account

It is possible to connect a [Kucoin](https://www.kucoin.com/r/af/QBA35AKL) sub-account **instead of your main account**.

This will allow you to host our automated strategy while the main account is used for your own trading operations.

1. [Click here](https://www.kucoin.com/account/sub) to access the page for generating a **new sub-account.**
2. Then click on the **Create Sub account** button.
3. Complete the following steps:
   * Sub-Account Name: **CryptoTrader**&#x20;
   * Permissions: **Spot**
   * Add a **login** **password**
   * Account type: **General sub-account**
   * Click on: **Save**

<figure><img src="https://139071599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoLzoLpI4GbFaDN6waLrV%2Fuploads%2Fvq3y6VKCdwd1D7xvKcTs%2FENSub.png?alt=media&#x26;token=8f02bdb2-2dfd-4e29-8407-8b16a07a862c" alt=""><figcaption></figcaption></figure>

4. Click on **Transfer**, perform the transfer to your **sub-account** of the funds you wish to allocate to our **automated strategy**, then click on **Confirm**:

<figure><img src="https://139071599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoLzoLpI4GbFaDN6waLrV%2Fuploads%2FAzIo5O9H2zR1V5QWuJCR%2FENTransfer.png?alt=media&#x26;token=4e74ab67-b658-4ebc-9c7c-bd7f21cc1b3b" alt=""><figcaption></figcaption></figure>

5. Click on **Settings**, then on **View API**. On this new page, click on **Create API**.
6. In the **API-based Trading** section, label your key by naming it **CryptoTrader**, then add **CryptoTrader#100** for the API's Passphrase:

<figure><img src="https://139071599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoLzoLpI4GbFaDN6waLrV%2Fuploads%2FWeL8sGwXVoeddpkOXnWH%2FENAPIname.png?alt=media&#x26;token=884fe207-6b55-4647-b0cf-fce2431b75ea" alt=""><figcaption></figcaption></figure>

7. Check only the **Spot Trading** box in the API restrictions:

<figure><img src="https://139071599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoLzoLpI4GbFaDN6waLrV%2Fuploads%2FvPROXNlWnqxMD2aKUqMX%2FENAPIRestric.png?alt=media&#x26;token=f5b230f1-cfc2-4be8-9977-25a25031040f" alt=""><figcaption></figcaption></figure>

8. Click on **Yes** in the **IP Restriction**, then add the following **two IP addresses**, separating them with a comma. Then click on **Add**:
   * `35.195.13.37`
   * `89.184.13.176`

<figure><img src="https://139071599-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoLzoLpI4GbFaDN6waLrV%2Fuploads%2FyCsXCJeV2CLrfNSjrLkg%2Ftelegram-cloud-photo-size-4-5951797810456282710-x.jpg?alt=media&#x26;token=2f798942-df50-472a-87d1-1f5ebb1954c9" alt=""><figcaption></figcaption></figure>

9. Click on **Next**.

Your API keys have been successfully generated. Before proceeding to the final step located in the left menu of this documentation under the section '**3 - Link to CryptoTrader', please make sure to keep the window containing the newly created public and private keys open, or copy them into a temporary file.**
