# OKX

{% hint style="info" %}
Please note that your funds in OKX must be in the Trading account. You can transfer the funds to your Trading account in your OKX >> Assets >> Transfer page.
{% endhint %}

### 1. API Management

Login to your OKX account and click on your Profile icon. You should see a dropdown menu shown in the image below. Click API.

<figure><img src="https://490807899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M5LiMstpewrLGU6auaX%2Fuploads%2FCfBP43g3AjYJ7Z7NN07r%2Fokx_api.png?alt=media&#x26;token=be4b79a3-9f22-4870-afba-10f8d07e0ad7" alt=""><figcaption></figcaption></figure>

### 2. Create API

Click the \[Create API key] button. You will see the following page:

<figure><img src="https://490807899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M5LiMstpewrLGU6auaX%2Fuploads%2FR8V3YwkZ5nhW8TgS8inH%2Fokx_api2.png?alt=media&#x26;token=126df6d1-672c-4aeb-916a-f4a79ac44e9f" alt=""><figcaption></figcaption></figure>

Give this API a name. You can name it "CryptoHero".&#x20;

Check the "API trading" option

Check the permissions **Read** AND **Trade**. Do **NOT** check the Withdraw permission. CryptoHero will **never ever** need to withdraw your funds.

Enter a unique **Passphrase (note this passphrase as you will need to copy it into CryptoHero)**. Be sure to write this down as you will need to enter it in CryptoHero. A passphrase is needed to create the API. This is not your account password. Each passphrase should be unique to each API.&#x20;

Click the \[Submit All] button.

A verification window will appear. Please fulfil the verification checks.

### 3. View API

Once the API is created successfully, you will see this pop up window in OKX.

<figure><img src="https://490807899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M5LiMstpewrLGU6auaX%2Fuploads%2FBwJnzQ2vpzTsG00kYvzu%2Fokx_api3.png?alt=media&#x26;token=e7c5b4f6-b720-4da6-add5-9f6243a86e26" alt=""><figcaption></figcaption></figure>

Click the "Show info" link.

You will see the API Key and Secret Key values.&#x20;

### 4. Add API to CryptoHero

Now, login to your CryptoHero account and go to Settings >> Exchange API. Select OKX and enter the following values into the respective fields in CryptoHero.

* API Key
* Secret Key
* Passphrase

Click Add Exchange. If the keys and passphrase are correct, you will see OKX listed in the "Connected Exchanges" section.
