> For the complete documentation index, see [llms.txt](https://docs.tradetomato.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tradetomato.com/fundamentals/live-trading/kucoin.md).

# KuCoin

{% hint style="info" %}
For improved security and to maintain a clear distinction between your automated trading activities and other investments, we advise setting up a separate **sub-account** on KuCoin dedicated to Tradetomato.
{% endhint %}

To get your modules up and running on KuCoin, you will have to generate the necessary API keys to establish a live trading connection.

[**Navigate to KuCoin**](https://www.kucoin.com/)

If you're new to KuCoin, create an account, or log in if you already have one.&#x20;

Try to create a robust password for your trading account and enhance your account's security by enabling 2-factor authentication.\
\
Verify your email and comply with KuCoin's identity verification process, reinforcing their stringent security standards.

<figure><img src="https://3546553553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOFnYWp8cljRKEyiDZ17i%2Fuploads%2FjhTFM7hFwuAH7vt56GQ8%2FKucoin%20image%201.png?alt=media&amp;token=341f4a69-aab6-4c7f-a9e8-fbed7ac81a82" alt=""><figcaption></figcaption></figure>

**API Key Creation**

To initialize the API creation process, find 'API-Management' within your KuCoin's account interface.

* Click 'Create API' and opt for the 'API-Based Trading' option.&#x20;
* Provide a recognizable name to your API key, facilitating easy identification.
* Add an API passphrase to secure your account - If lost, a new API must be created.

**Select Permissions**&#x20;

During API key generation, ensure that you select appropriate permissions. For live trading, you'll need to enable the following permissions:

<figure><img src="https://3546553553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOFnYWp8cljRKEyiDZ17i%2Fuploads%2FAZt0YPcRQnbiZfDNlaMx%2FKucoin%20image%202.png?alt=media&amp;token=b8dc790a-c387-48bd-a0ae-241f04576dfa" alt=""><figcaption></figcaption></figure>

* **API Restrictions -** Tick off the following permissions:
  * [x] Spot Trading
  * [x] Margin Trading
* **IP Restrictions**
  * [x] Yes, API calls can only be made from trusted IP addresses

#### **Whitelist IP**

Strengthen security by whitelisting your IP address.

In the empty field under IP *Restrictions e*nter the IP addresses displayed to you on the Tradetomato platform, separating them with spaces.

<figure><img src="https://3546553553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOFnYWp8cljRKEyiDZ17i%2Fuploads%2FlAsYy241Y80P2lKh63SF%2FScreenshot%202023-09-14%20at%2013.44.33.png?alt=media&amp;token=19c9c345-aff0-46f8-84c8-8ea3e2451bd7" alt=""><figcaption></figcaption></figure>

<mark style="background-color:green;">Tradetomato emphasizes IP whitelisting to bolster security based on past automated trading platform vulnerabilities.</mark>

**Generate Key**

When proceeding, you will be prompted to undergo a security verification, where you will be asked to provide your trading password, email verification & your 2FA code.

<figure><img src="https://3546553553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOFnYWp8cljRKEyiDZ17i%2Fuploads%2FyHMaXpCuMWS402I8RvsL%2FKucoin%20image%203.png?alt=media&amp;token=a2ddd353-0f97-4c31-8930-358d42bbcf68" alt=""><figcaption></figcaption></figure>

**Establish Connection**

Once your API is generated, copy the keys. Return to Tradetomato's connection setup and paste these credentials in their respective fields. Finally, fill in your API's passphrase to complete the setup of your connection.&#x20;

\
\
Awesome job! Now you can see your portfolio and start automating your Kucoin trades on Tradetomato!

<figure><img src="https://3546553553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOFnYWp8cljRKEyiDZ17i%2Fuploads%2FLigvM5LHNMXo4AaxRMmH%2FCopy%20API%20%26%20Scret%20%26%20Pass.png?alt=media&amp;token=57633166-acca-4071-8610-a9ee10ee9ce3" alt=""><figcaption></figcaption></figure>

***
