# OKX - API Import Guide

Please follow the instructions in the pictures below:

{% embed url="<https://youtube.com/shorts/xZzjhS3XuKc?feature=share>" %}

**Step 1: Generate Your API key**

**1.1** Sign into your OKx account with app and click on **\[**<mark style="color:blue;">**User Icon**</mark>**]** in the top left corner on **\[**<mark style="color:blue;">**OKX**</mark>**]** page. As follows:

<figure><img src="https://2235159847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgTaR88gN1nbfnMB7d1tU%2Fuploads%2Fs9Uj0haHVqJnC7ExBQTF%2F1.jpg?alt=media&#x26;token=e488cb89-c895-4f15-9000-5a7963d4a38c" alt=""><figcaption></figcaption></figure>

**1.2** After entering this page, slide to the bottom, Click on the **\[**<mark style="color:blue;">**API**</mark>**]**. As follows:

<figure><img src="https://2235159847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgTaR88gN1nbfnMB7d1tU%2Fuploads%2FfWSMCgxeGi3wStZDUk1N%2F2.jpg?alt=media&#x26;token=f8156b0e-ffc7-4e13-a7be-71b58c372794" alt="" width="472"><figcaption></figcaption></figure>

**1.3** Click on **\[**<mark style="color:blue;">**Create API Key**</mark>**]**. As follows:

<figure><img src="https://2235159847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgTaR88gN1nbfnMB7d1tU%2Fuploads%2FqnIVD9uYbSzYIHq8hTyz%2F3.jpg?alt=media&#x26;token=a2079b3e-c2ff-47fe-9819-95a049614959" alt="" width="477"><figcaption></figcaption></figure>

**Step 2: Configure the API permissions.**&#x20;

<figure><img src="https://2235159847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgTaR88gN1nbfnMB7d1tU%2Fuploads%2FEVI1lbDjCyK4Izyjc5gV%2F2025-09-25%2010.19.12.jpg?alt=media&#x26;token=dcfdc1bb-e935-44b6-ab17-884ec4c1ac4b" alt=""><figcaption></figcaption></figure>

**IP group of the uTrading server:** <mark style="color:red;">13.213.132.125,13.251.83.60,18.139.102.94,3.1.7.213,46.137.215.117,52.220.111.151,52.220.117.151,52.220.31.227,52.77.45.93,54.169.15.234,13.215.122.202,18.136.175.80,18.141.82.149,18.142.40.60,18.142.65.141,3.0.128.217,3.0.26.171,52.221.111.151,52.221.18.185,54.179.229.52</mark>

Please copy and paste all the above IPs at once.

2.1 Give a name to your API Key, and set a Passphrase. Make sure to remember that Passphrase, as you will need to use it again in a few moments.

2.2 uTrading needs the \[Read] and \[Trade] function to be able to trading from OKEx.

2.3 Click on Confirm, then click on \[View] to see your API Key and API Secret.

**Step 3: Linking Your API Key with uTrading.**

3.1 Open the uTrading APP, go to the **\[**<mark style="color:blue;">**Home**</mark>**]** page, and then click **\[**<mark style="color:blue;">**API Binding**</mark>**]**. As follows:

<figure><img src="https://2235159847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgTaR88gN1nbfnMB7d1tU%2Fuploads%2FC4kPzWOtSft3tAWuv3El%2F%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20260415154649_35_5.jpg?alt=media&#x26;token=3b2f8d7e-bbc1-43ac-9867-d33efbb7bd57" alt=""><figcaption></figcaption></figure>

3.2 Enter the **\[**<mark style="color:blue;">**API Binding**</mark>**]** page, and then click **\[**<mark style="color:blue;">**OKX**</mark>**]**. As follow:

<figure><img src="https://2235159847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgTaR88gN1nbfnMB7d1tU%2Fuploads%2FfjKxVYIwzSPgRunh5Bxt%2Fokx.jpg?alt=media&#x26;token=c80da0d2-fdac-407b-80a9-3bdba4d3814f" alt=""><figcaption></figcaption></figure>

3.3 Open the API import page, paste the **\[**<mark style="color:blue;">**API Key**</mark>**]** and **\[**<mark style="color:blue;">**Secret Key**</mark>**]** from the OKX into uTrading, click **\[**<mark style="color:blue;">**Import**</mark>**]** after filled. As follow:

<figure><img src="https://2235159847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgTaR88gN1nbfnMB7d1tU%2Fuploads%2FZg6mGSCKrYfwyYcWdgQG%2F1212.jpg?alt=media&#x26;token=5d2df3cc-460c-4338-9906-10c7464451eb" alt=""><figcaption></figcaption></figure>

Success! If you have successfully completed these steps, the status will show as "API is running normally".
