At a glance
👁️ Blockpit imports OKX transactions automatically via an API key that you create at OKX: Deposits & Withdrawals, Spot Market Trades, Fees and Converts. Import method: API |
How do I get my OKX API key?
Log in to your OKX account.
Hover over the profile icon in the upper-right corner to display the drop-down menu and select
API and connections.
Select
+ Create API keyand enter a name for your API key.
Enter a label (name) for your API key.
Do not use IP whitelisting for now.
Grant the API key permission
Readshown in the image.
Important: Set
Blockp!t1as the passphrase.
Now click
Submit alland enter your two-factor authentication codes.
Then click
Show info.
Your API key and Secret are now shown in the API list.
❗ Your Secret is shown only once and can only be copied briefly. Therefore, do not click
Completeyet.
Open + Integration (or, in the Dashboard under the
Integrationstab, click+ Integration).
Select
OKXin the list of exchanges (dialogAdd OKX) and then copy the API key and the Secret into the designated fields. Confirm your entries withContinue.
What happens after the import
After Continue, the integration appears in the Dashboard under the Integrations tab; you can find the individual transactions under Transactions.
You can fetch new transactions later with the sync icon of the integration or with Sync all. If the Synced Balance differs from the calculated balance, Blockpit shows the Mismatched Balance notice.
You can edit or delete the integration at any time: > How to create, sync, edit, convert, group, delete and deactivate integrations?
Which data can be imported via OKX API key?
Transactions
📅 EEA accounts (EU): All transactions as of 01.01.2021.
📅 Non-EEA accounts (Non-EU): Transactions older than 3 years (actually 12 quarters) and lending transactions older than 30 days are not available via API.
Supported
✅ Deposits & Withdrawals
✅ Spot Market Trades
✅ Fees
✅ Converts
✅ Buy Crypto via Card (Express buy)
✅ Margin Trades
✅ Derivative Trades PnL (Profit, Loss, Fee and Funding)
✅ Airdrops, Bounties, Hard Forks
✅ Earn: Simple Earn, On-chain Earn, Lending
✅ ❔ Simple Earn Redemptions (When redeeming flexible Simple Earn positions, OKX bundles accumulated rewards directly into the principal redemption payout without creating a separate reward transaction. Because internal subscription and redemption transfers are ignored, the accrued interest delta will appear as a small positive difference in your Synced Balance upon exit. 💡 Fix: Add the missing reward amount as a manual Interest transaction or via the Auto-Balancing feature after verifying against your OKX Funding Account statement.)
✅ ❔ ETH/BETH and SOL/OKSOL Swaps (⚠ Subscription/Redemption from OKSOL and BETH staking should be reviewed retrospectively to ensure complete coverage. These should be displayed as Trades. Indications of incomplete data are mismatches in ETH/BETH or SOL/OKSOL balances.)
Synced Balance
Supported
✅ All general balances
Not Supported
⛔ Bitcoin Yield+
Temporary Mismatches
👁🗨 Open Futures / Derivatives Positions
Until open/unrealized derivatives or perpetual futures positions are closed, unrealized PnL and locked margin will not be fully reflected in the Synced Balance of your Blockpit integration. However, this has no effect on your tax report, as it is based on your realized transactions (Calculated Balance). The resulting Tip: Mismatched Balance can be ignored in this context. The “Auto-Balancing” (or “Reconcile Balance”) feature should not be used in this exceptional case!
How do I solve problems with my OKX Integration?
Is something still missing?
▸ Supported according to this guide: Create a second integration to compare. The older your integration, the more likely this helps.
▸ Not supported: There is no separate CSV import for this integration. Transfer the missing transactions into the Blockpit Excel template and upload it to your integration.
▸ Not mentioned here: Report it to us via chat request with an example. This lets us extend the import (if technically possible).
If you would rather have your account analysed, the Expert Service (Germany, Austria, Switzerland) helps.
Missing transactions can be found by comparing with the actual history of your exchange. You can add them afterwards individually by hand or by migrating your CSV data into our Blockpit Excel template in your Blockpit integration.
Does your Synced Balance not show a balance that is not listed as a mismatch above? Report it to us via chat request with an example. This lets us extend the import (if technically possible).
⚠️ Typical mistakes
✗ Secret not copied right away → the Secret is shown only once and can only be copied briefly

