# 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="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FFSbexmYCBlDx2HWTPEwe%2Fokx1.png?alt=media&#x26;token=017c538d-3efc-4943-b1bd-87acfe691d83" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FQEIzejYxcr5lB1GZHSrx%2Fokx2.png?alt=media&#x26;token=0a5b99d8-ecad-49dc-bbf4-95a9803a4b2b" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FqPz2f9ZXRoDgqdTDWwTt%2Fokx3.png?alt=media&#x26;token=4218c25d-4c96-4007-b583-f21aeed599c1" 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="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FRcFLN9lsLxeVoUIU1wOn%2Fokx4.png?alt=media&#x26;token=5383f897-bdd5-46bb-97b6-0c95632b06ea" 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 OKX 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%2FPy8WNTrzOHJKdCVTYzkK%2F1.png?alt=media&#x26;token=d7a37145-b668-48c4-8da2-dfa8e2692d84" alt="" width="375"><figcaption></figcaption></figure>

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

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2Fz2m3LoSBj13iWLPuiDMk%2Fokx5.png?alt=media&#x26;token=07d974ed-760b-469b-817f-affa00ed3031" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FMrVubeeSrzRpKPGcKvTf%2Fokx6.png?alt=media&#x26;token=8636c134-30c2-4738-8ce1-072124c8bbbe" 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="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FMZWaurBVCDsA7NqnZUPA%2Fokx7.png?alt=media&#x26;token=2257b5d9-2377-44a6-a4ff-d678ff10fff9" alt=""><figcaption></figcaption></figure>

Press on "Submit all".&#x20;

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FZ5uzW3Y9lBODnPcDOQg7%2Fokx8.png?alt=media&#x26;token=db2dc983-4033-40cf-b5fc-6169d0b8923a" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2F9mMkyHzeb88b2uwRapFe%2Fokx9.png?alt=media&#x26;token=254e9c99-568e-4b72-a27d-e164161993cc" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FULgE7QSykbh6U9Ldbzea%2Fokx10.png?alt=media&#x26;token=befa22d7-0b58-4c9f-b3c9-fd2a90b060f9" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FWRKgHhvq9KvA8B0mSmFk%2Fokx11.png?alt=media&#x26;token=821b8897-3cae-47d3-9033-53fdafaf4e41" 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="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FC58tLU2LTIO9omtpWpu1%2F4.png?alt=media&#x26;token=ffb40401-fd68-405c-acba-028acf4815b5" alt="" width="375"><figcaption></figcaption></figure>
