This page explains how to get an API key for OKX's transaction history.
If the transactions fetched via the API and the transactions in the downloaded file are different, we cannot determine which is more accurate. Please check the transaction details thoroughly after they are fetched via the API. If you find any missing transactions, please send us the downloaded file and the API details via the Support button at the bottom right. We will check the details.
According to the API specification, only distributions transactions for the last 1 month can be fetched via the API. (other transactions for the past 3 months). If you have distributions trade history older than 1 month(or other trade histroy older than 3 months), please upload them ascustom tradesbefore establishing the API connection. Also we don't support spot trade, derivatives, swap, margin, staking redemption by API.
How to get API Key
1. Log into OKX, click the Profile icon, and then click the "API" menu.
2. Click "Create V5 API key".
①Select API trading.
②Fill in the API name field.
③Fill in the Passphrase field.
④Select "Read"in Permission.
※Plesa leave the IP address colunm blank.
①～③Fill in Email code and Authentication app code fields and click "Confirm".
5. Take note of the API key and the Secret key displayed on the screen.
Add API Connectivity to OKX
Once you have the API key, you can connect it to Bitrue from here.
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.