> For the complete documentation index, see [llms.txt](https://hash7-gitbook.gitbook.io/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hash7-gitbook.gitbook.io/en/user-guide/1.4-api-binding-tutorial-web-version/1.4.5-okx-api-binding-tutorial.md).

# 1.4.5 OKX API Binding 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.**

❗️❗️**For a correct API binding we recommend to use the web-version of the exchange, not the app**❗️❗️

First you need to download the BingX app or visit the official website of the exchange: <https://www.okx.com/>&#x20;

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 account icon in the upper right corner.&#x20;

<figure><img src="/files/5mtuhd5v57gItFJGLKiC" alt=""><figcaption></figcaption></figure>

From the drop-down menu, select "API".&#x20;

<figure><img src="/files/5Mf309D7vs8AISlkJldI" alt=""><figcaption></figcaption></figure>

Press on the "Create APIs" button.&#x20;

<figure><img src="/files/cP6H4OtRMdzZ5VhijPWi" alt=""><figcaption></figcaption></figure>

In the "API name" field enter the name of your API key.&#x20;

In the "Purpose" field choose "API trading".

<figure><img src="/files/EFzlqSFBm1r2L02PC1Qa" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/IEwReSh3Hkhjcqm5EWGu" alt="" width="375"><figcaption></figcaption></figure>

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

<figure><img src="/files/pOXRXdizB8DBJuHfqlCq" alt="" width="375"><figcaption></figcaption></figure>

Paste the copied IP-addresses in the "IP address allowist" field.&#x20;

<figure><img src="/files/t3KImkJTh4iMawj1WVcP" alt=""><figcaption></figcaption></figure>

In the "Permissions" section select "Trade".&#x20;

<figure><img src="/files/fMhEz15MmWF6h9lUVam6" alt=""><figcaption></figcaption></figure>

In the next section “Passphrase” specify your secret phrase and save it to a safe place.

*This section is required to view information and access the API. Keep it safe and create a new API key in case the passphrase is lost. The passphrase must include uppercase and lowercase letters and be 8-32 characters long. Spaces and special characters are not supported.*

<figure><img src="/files/EidYVifwtXHymxfsU85u" alt=""><figcaption></figcaption></figure>

Press on "Submit all".&#x20;

<figure><img src="/files/b3nbU7Y2iaM4UkrNIv4k" alt=""><figcaption></figcaption></figure>

To save the changes press on "Security verification".&#x20;

<figure><img src="/files/plmoIV1FiqEbvC7HhgIV" alt=""><figcaption></figcaption></figure>

In the pop-up window press on "Show info".&#x20;

<figure><img src="/files/6xY3zQYPKMEGvFzdfevX" alt=""><figcaption></figcaption></figure>

Next copy the API key and the secret key to a safe place.

<figure><img src="/files/wEPWDwUtAFl1YuyMpAo2" alt=""><figcaption></figcaption></figure>

Paste the copied keys into the corresponding fields in the Hash7 app and enter your secret phrase. To complete the process, click on the "Connect" button.

<figure><img src="/files/SLp6KhSGivS2lGngUhIz" alt="" width="375"><figcaption></figcaption></figure>
