# How to create and set up OKX API key

How to create and set up OKX API key

Here, we show you how to generate and connect your OKX API key to the Doblox trading platform.

Doblox is a trading platform that allows you to trade and analyze in numerous cryptocurrency exchanges, monitor media and social media and use many other features in an all in one interface.

To do so, you should use an exchange API key. This is a safe and reliable way to use a trading platform because it does not give access to your confidential data as **Doblox** also **does not access any funds management (withdrawals & deposits).**

1. **API Key (Access Key):** This key authenticates users and specifies which account is connecting to the third-party service.
2. **Secret Key:** This key establishes an additional security layer by demanding a confidential token for request authentication.
3. **Passphrase:** Often generated by users, this passphrase acts as an extra security measure.
4. **IP Whitelist:** In late 2022, as a result of heightened security measures, exchanges started expiring API keys periodically. Consequently, platforms like Doblox now offer the ability to specify IP whitelist addresses, aiming to enhance security without burdening users with the need to frequently change API keys.

**Note:** You can connect several exchange accounts to your Doblox account to speed your trading and make it more sophisticated and smoother with less stress and exhaustion.&#x20;

1. Login into your OKX account.&#x20;

{% hint style="info" %}
If you haven't created a OKX account yet, you can start the process by following [this link](https://www.okx.com/join/DOBLOX).
{% endhint %}

2. Click on profile (the dummy icon on the upper right-hand corner of the screen). When the drop-down menu is open, choose the “API” option.&#x20;

<figure><img src="https://2802448141-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZeGgisBcaqtUNxWtgfm%2Fuploads%2FpgkFYBK2C0Y7MYx3yFRK%2F2.png?alt=media&#x26;token=dae2aaf4-432e-464a-a4a1-11a2e46cb3e4" alt="Create OKX API key "><figcaption></figcaption></figure>

3. On the new page, click “+ Create API Key” on the upper right-hand corner.

<figure><img src="https://2802448141-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZeGgisBcaqtUNxWtgfm%2Fuploads%2FlG8a2DMh2iKTYmzfa7lR%2F3.png?alt=media&#x26;token=1f1b695b-c56a-4aa5-8911-9d254261bce4" alt=""><figcaption></figcaption></figure>

4. When you go to another page, on the left of it, under the “Purpose” section, turn on the “Linking third party apps” option.&#x20;

<figure><img src="https://2802448141-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZeGgisBcaqtUNxWtgfm%2Fuploads%2FJcCnUHeUxMSc4rqnWfhU%2F4.png?alt=media&#x26;token=4e8547cb-f555-49e5-be00-4303a77ed7f4" alt=""><figcaption></figcaption></figure>

5. Now, choose “Doblox” from the “App name” drop-down.

<figure><img src="https://2802448141-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZeGgisBcaqtUNxWtgfm%2Fuploads%2F2i66cPp07U3QZxyeUAtW%2F5.png?alt=media&#x26;token=7e67b29c-c3b7-4189-ac70-65ad54e101e7" alt="" width="563"><figcaption></figcaption></figure>

6. For the “API name” field, you should choose a name for it. Also choose a password and fill the “Passphrase” field with it.&#x20;

<mark style="color:red;">**Note: Copy and keep the chosen “Passphrase” somewhere safe, you might need this code in future.**</mark>&#x20;

7. Check the “trade” box under the permission section.
8. Click on “confirm”.

<figure><img src="https://2802448141-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZeGgisBcaqtUNxWtgfm%2Fuploads%2Fw3cEXYUQ4TGbCGi87CPB%2F6%20-%207%20-%208.png?alt=media&#x26;token=746d7908-a126-4a2c-b552-9e821d19bf69" alt="" width="563"><figcaption></figcaption></figure>

9. In this step, you should do a verification. Click on “Send” to receive a code on your mobile and fill in the blank. Then click on “Confirm”.&#x20;

<figure><img src="https://2802448141-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZeGgisBcaqtUNxWtgfm%2Fuploads%2FV7QkIDCte8JJ1luXLs2R%2F9.png?alt=media&#x26;token=57d7b67e-86fe-4dcf-8ad2-ab3e52dddc6a" alt="" width="563"><figcaption></figcaption></figure>

10. Your “API key” and "Secret Key” are created. **Copy and record the keys** in a secure location to use them in further steps below (**We insist on recording them** somewhere else because the “Secret Key” might be shown just once and goes away as you close the pane or go to another page).  **Click on the “Confirm”**.

<figure><img src="https://2802448141-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZeGgisBcaqtUNxWtgfm%2Fuploads%2F3k2reA4yTsln5yAHvX2o%2F10.png?alt=media&#x26;token=89560ec1-eae9-4d63-b734-46234001a16b" alt="" width="375"><figcaption></figcaption></figure>

Now go back to your account in Doblox and follow the instructions below.

11. When you enter your Doblox account, click on the profile (dummy icon) on the upper right-hand corner of the panel and choose the “Exchange Management” option.

<figure><img src="https://2802448141-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZeGgisBcaqtUNxWtgfm%2Fuploads%2F8rtAbvDy2OnZRQtIJPoO%2F1.png?alt=media&#x26;token=53ec21b0-387f-45ae-87a4-bda05aa70193" alt="Add Bitget API key to Doblox"><figcaption></figcaption></figure>

12. A pane is open, choose the “Exchanges/Wallets” tab.&#x20;
13. In this tab, click on the “+ Exchange” button on the right of the page.

<figure><img src="https://2802448141-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZeGgisBcaqtUNxWtgfm%2Fuploads%2FFl6TG700Hay9u6TgBK0y%2F2%20%26%203%20ex%20-%20EN.png?alt=media&#x26;token=bcba3464-dade-4057-80a7-786f4609ae5e" alt=""><figcaption></figcaption></figure>

14. Another pane is open which you should fill the fields with the information (Keys) you received from OKX (You can fill the “Nickname” field with whatever name you like. Here we suggest filling it with “My OKX”).

<figure><img src="https://2802448141-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZeGgisBcaqtUNxWtgfm%2Fuploads%2FaKEXgwNeSNZKYrZ6cX5J%2F4%20-%202.png?alt=media&#x26;token=134f04fc-942e-4a23-b03c-a55f2dde42f8" alt="" width="563"><figcaption></figcaption></figure>

15. Choose OKX from the first drop-down field (Exchange).

<figure><img src="https://2802448141-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZeGgisBcaqtUNxWtgfm%2Fuploads%2Fqp6rgE63w44NjgefNp4O%2F5%20-%202.png?alt=media&#x26;token=c1a6a225-88f2-472a-8c19-99c403774e74" alt="" width="563"><figcaption></figcaption></figure>

16. Fill the “API key” and “Secret key” Fields with the given keys that you took from OKX.&#x20;

<mark style="color:red;">Important: You</mark> <mark style="color:red;"></mark><mark style="color:red;">**don't**</mark> <mark style="color:red;"></mark><mark style="color:red;">need to use the IP whitelisting code for Bybit.</mark>&#x20;

17. Now click on the “Add Exchange” button.&#x20;

<figure><img src="https://2802448141-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZeGgisBcaqtUNxWtgfm%2Fuploads%2Fk8SAEjCcbOzW7XVu5w4C%2FScreenshot%202024-09-26%20at%2000.46.56.png?alt=media&#x26;token=ad2fc0f2-d467-4563-a5eb-8a0480ac14e4" alt=""><figcaption></figcaption></figure>

18. Now your Bybit account is connected to Doblox and you can enjoy trading. Please check if the API is **synced** by going to \[profile > “Exchange Management'' > “Exchanges | Wallets'' tab].&#x20;

<figure><img src="https://2802448141-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBZeGgisBcaqtUNxWtgfm%2Fuploads%2FIoAcEhmuwqNKqqd7jAwT%2F9.png?alt=media&#x26;token=bef53f48-da13-4aae-bf69-d2d75b8d80ef" alt=""><figcaption></figcaption></figure>

<mark style="color:red;">**Note:**</mark> <mark style="color:red;"></mark><mark style="color:red;">When generating the API keys, selecting Doblox as a “Third Party Application” automatically whitelists your API key by IP. Therefore, no additional steps are needed.</mark>
