How do I get my OKX API key?
Log in to your OKX account.
Go to the user icon, in the upper-right corner, to display the drop-down menu and select API.
Now select "+ Create APIs" and enter a name for your API key.
Enter a Api name like "blockpit".
Keep "API trading" as purpose.
Please do not use IP whitelisting for now.
Grant the API key permissions "Read".
Important: Enter "Blockp!t1" as the passphrase.
Now select "Submit all" and enter your Two-factor authentication codes.
Click on "Show info". Your API key and Secret are now visible in the API-List.
❗ Your Secret is now shown only once and available to copy! Do not click Complete yet.
To import your data, you must first create an Integration in the Blockpit Web App.
To do so, click + Integration in the upper navigation.Select OKX from the list of exchanges, and then copy the API key and the Secret into the designated fields. Confirm your entries by clicking Create.
💡 OKX only provides the transaction history of the last 3 months via API! We recommend that you do not delete your OKX Integration after the first creation.
Which data can be imported via OKX API?
Your complete transaction history always serves as the basis for your tax report. Preferably, automatic API solutions are used to import your transactions. Our team is committed to implementing all API data provided by your exchange for you.
Using the following list, you can identify all products that are implemented:
Transactions
📅 Spot Market Trades & Converts older than 3 months are not available via API.
📅 Derivative Trades older than 1 year are not available via API.
Supported
✅ Deposits & Withdrawals
✅ Spot Market Trades
✅ Fees
✅ Converts
✅ Derivative Trades PnL (Profit, Loss, Fee and Funding)
✅ Airdrops, Bounties, Hard Forks
✅ Earn (EU): On-chain Earn (only)
✅ Earn (non EU): Simple Earn, On-chain Earn, Lending
In case of missing transactions, you can help our support team via chat-request to include them in our import spectrum (if technically possible).
Not Supported
⛔ Margin Trades
⛔ Buy Crypto via Card (Express buy)
Missing transactions can be found by comparing the actual history of your exchange. You can add these subsequently as individual manual entries or by migrating your CSV data into our Excel template.
Synced Balance
Supported
✅ Complete import scope
If your Synced Balance is displayed incompletely, you can help our support team via chat-request to include it in our import spectrum (if technically possible).