How to get an API key for OKX

This page explains how to get an API key for OKX's transaction history.

 

1.Our Support Status for OKX

1.1 Types of transactions that can be retrieved

You can check the support status of API endpoints for exchanges on the ”Supported Exchanges & Blockchains” page.

If an exchange provides transaction history via API, we will automatically reflect that data. However, if the exchange does not supply certain information through API or if the provided files lack transaction details or are unclear, those transactions cannot be automatically imported. In such cases, please upload the transaction history manually using a custom file.
Custom File for any other trades

*For margin trading history, please note that "borrow" and "repay" records are not available via API due to exchange limitations. Kindly refer to the instructions below and upload the data manually using a custom file.
2.12 Borrowing/Returning between individuals

*As of 31st Mar 2023, since API doesn't provide enough data for "Shark Fin" feature, and therefore, we don't support the transaction from "Shark Fin" and "Seagull". 

 

1.2 Time period that can be retrieved

  • Only transaction history from the past 3 months can be retrieved.
    ​Due to exchange limitations, only the past 3 months of transaction history can be automatically retrieved. (Distributions can be obtained only past 1 month) To include older transactions, please upload a file obtained from the exchange or create and upload a Custom File.

    How to get trade history from OKX

  • Please re-sync the API manually at least once every 3 months
    Transaction history older than 3 months will not be reflected, so it is necessary to perform regular API re-synchronization within that period after the first sync. (Distributions can be obtained only past 1 month)

 

2.How to get API Key for OKX

1. Log into OKX, click the Profile icon, and then click the "API" menu.

__________20230113_140003.png

 

2. Click "Create V5 API key".

 

3.

①Select API trading.

②Fill in the API name field.

③Fill in the Passphrase field.

④Enter the below IP in IP address allowlist(option)

52.69.115.51,52.193.138.38,18.179.74.94

④Select "Read"in Permission.

⑤Click "Confirm".

4.Two-factor authentication

①~③Fill in Email code and Authentication app code fields and click "Confirm".

mceclip0.png

5. Take note of the API key and the Secret key displayed on the screen.

 

3.How to add your OKX API key to cryptact

Please select your exchange on the designated screen, enter your API key, secret key and Passphrase, then click "Submit" to initiate automatic API synchronization. If you conduct new transactions later, you'll need to manually click the "Sync" button to update your transaction history.
How to manage (add/sync) your API keys with exchanges

18.webp

 

Disclaimer

Please note that we will not be held responsible for any damages caused by unauthorized use or other accidents due to API connections. When connecting, please be sure to use the API key specified by us.