# 1.4.7 KuCoin API Tutorial

**For security reasons, the API secret will be displayed only 1 time. After closing the window, the API will not be available. Make sure to save the key in a safe place.**

First open the official website of the exchange:&#x20;

{% embed url="<https://www.kucoin.com/>" %}

If you are already a registered user, then log in to your existing account on the exchange. If you don't have an account, you'll need to register first and pass KYC.&#x20;

After successfully logging in or registering, press on the "API Management" in the left menu.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FKfwkopFRUPRUjHtfS1sJ%2F1.png?alt=media&#x26;token=3e729246-1b85-4b53-b131-80ad9cb04576" alt=""><figcaption></figcaption></figure>

Next, click the "Create API" button.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2F6EpsGJZVNW2jxeHQF8dp%2F2.png?alt=media&#x26;token=c1745411-f5ef-4606-b9d5-ced9ba0d10c2" alt=""><figcaption></figcaption></figure>

On the "Create API" page:

In the first field, "API Name", enter a name for your API key.

In the next field, "API Passphrase", create and enter a secure passphrase.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2Fmgunz3At8PPQntED2mMM%2F3.png?alt=media&#x26;token=006c4f84-12b6-4d7b-87ef-2735c6348ca5" alt=""><figcaption></figcaption></figure>

In the "API Restrictions" section, select the "Spot Trading" option.

In the "IP Restrictions"section, select "Restrict to Trusted IPs only".

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FkOWi2hO1wAfzifWh1KIg%2F4.png?alt=media&#x26;token=517632bc-7e89-40d5-88fd-40fbe16b59a7" alt=""><figcaption></figcaption></figure>

Then open the HASH7 app. It the upper left corner press "Exchange".&#x20;

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FFe7zdFnDMzJNXmesU7CC%2F6.png?alt=media&#x26;token=0c83c77e-f5cb-4d7f-987b-da0cb09eec24" alt="" width="375"><figcaption></figcaption></figure>

Select the KuCoin exchange and copy the IP-addresses.&#x20;

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FX6BeB8AkRpDE6EnuO0Ye%2F11.png?alt=media&#x26;token=e73f5917-127d-4058-b3c5-cd579fedc6f0" alt="" width="375"><figcaption></figcaption></figure>

Return to the official KuCoin website and paste the copied IP addresses from the HASH7 app into the displayed field. Then, click "Add".

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FwX9mcgV9Oq7PRqrgiQnu%2F5.png?alt=media&#x26;token=23a2bd11-44a9-4e5e-9cac-f49541d3e2aa" alt=""><figcaption></figcaption></figure>

After saving the IP addresses, click the "Next" button and complete the security verification process.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2F3Alk6gaeG0tuW4aeSN6v%2F6.png?alt=media&#x26;token=2e814f84-2c30-4970-8960-f6503497b7a0" alt=""><figcaption></figcaption></figure>

After completing the security verification, your API keys will be successfully created. Then copy your API Key (Key) and API Secret (Secret) to a secure location. Scroll down and click "Confirm" to finalize and save the keys.&#x20;

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FoMaO6mNQRnzJ8hg9cnTe%2F7.png?alt=media&#x26;token=a2c44870-243b-451c-ba09-d5f98e951686" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2F8wyOqDZ3kmCqN7lYJjng%2F8.png?alt=media&#x26;token=2bea0e90-7efd-41e5-91dc-7593ea25016c" alt=""><figcaption></figcaption></figure>

Then, reopen the HASH7 app and paste the copied keys into the corresponding fields.&#x20;

In the "API Passphrase" field, enter the passphrase you specified in the API key settings in the KuCoin website.

To complete the process, click the "Connect" button.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FF2L3P3Tru7IHFRaEEYOh%2F12.png?alt=media&#x26;token=a7d43bac-a24b-4979-a8d8-942d5346bab5" alt="" width="375"><figcaption></figcaption></figure>
