How to import data via OKX API key?

 How do I get my OKX API key?

  1. Log in to your OKX account.
  2. Go to the user icon, in the upper-right corner, to display the drop-down menu and select API.
  3. Now select "+Create V5 API key" and enter a name for your API key.
  4. Important: Enter "Blockp!t1" as the passphrase.
  5. Grant the API key permissions "Read".
  6. Please do not use IP whitelisting for now.

    mceclip0.png

  7. Now finish by selecting Confirm.
  8. Your API key and Secret are now visible in the API-List.
    Your Secret is now shown only once and available to copy!
  9. To import your data, you must first create an Integration in the Blockpit Web App.
    To do so, click + Integration in the upper navigation.
  10. 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. This will ensure a consistent transaction history, at least for future transactions. For the import of your missing transaction history, a migration of your OKEx CSV data into the Blockpit template is necessary for the time being.

 

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:

icon-clock.svg Transactions older than 3 months are not available via API and have to be imported manually or via XLS template.

icon-clock.svg On-Chain Earn Transactions older than 1 month are not available via API and have to be imported manually or via XLS template.

Supported

check.png Deposits & Withdrawals
check.png Fee Payments
check.png Spot Market Trades
check.png Derivative Trades PnL (Profit, Loss, Fee and Funding)
check.png Rewards & Distributions (Staking, Lending, Airdrops, Bounties, Hard Forks)

In case of missing transactions, you can identify them in the history of your exchange and help our support team via ticket to include them in our import spectrum.

Not Supported

x.png Margin Trades
x.png Buy Crypto via Card (Express buy)

If an import of your transactions via API is not available on exchange side, you can also add these transactions manually or by migrating your CSV data into our Excel template.

Synced Balance:

check.png Complete import scope

Please note the information about how the asset balance is calculated in this article.
If balances are displayed incorrectly, you can help our support team via Ticket to add them to our API import scope.

Here you will find instructions on how to create an API-Integration in Blockpit.

 

Will OKX automatically deduct the tax for me?

Was this article helpful?