How to Download Your OKX Transaction History and Add It to Koinly

OKX logo with the guide title: download your OKX transaction history for Koinly

For UK users, the most reliable way to get your OKX transaction history into Koinly is to download your account statements as files and upload them. OKX’s UK help page lists the API as unavailable to UK users. Even where an API key works, Koinly can only pull 3 months of trades and 1 month of other transactions.

OKX says UK customers are served by Aux Cayes FinTech Co. Ltd., a company registered in Seychelles. UK users cannot use futures, perpetual swaps, margin, options, trading bots, P2P or On-chain Earn. Profits from past futures or margin trading are taxed differently, so ask an adviser. If your history includes these, they come from a period before the UK restrictions or from a non-UK account.

Before you start

  • Log in at okx.com/en-gb on a computer. Statement downloads are easier to manage on the website.
  • List every OKX account you use, including sub-accounts. Each sub-account needs its own export.
  • Create a Koinly account and choose the United Kingdom as your tax country.

Part 1: Download your OKX transaction history

Step 1: Open your assets page

Log in to OKX and open Assets from the top menu.

OKX top menu → Assets

Step 2: Find the statement download option

Open the order or statement history area and look for the Download option. OKX explains this in its help article “How do I download my account statements?”.

OKX history page → Download

Step 3: Choose the account and record type

Select the account (for example, Trading or Funding) and the record type. Download trading history and the full bills or account statement, so deposits, withdrawals and rewards are included.

OKX statement download → choose account and record type

Step 4: Set the date range

Choose a custom range. Cover your full history, working one UK tax year (6 April to 5 April) at a time if a single export is too large.

OKX statement date range set to one tax year

Step 5: Download and save the files

Confirm the request and download the file when it is ready. Save each file with the account name and tax year in the file name.

OKX statement ready → download file

Part 2: Upload the files to Koinly

Step 6: Add OKX as a wallet in Koinly

In Koinly, open Wallets, click Add Wallet and search for OKX. Koinly lists several OKX options, including my.OKX (EEA users) and app.OKX (Australia and most non-EU users). Choose the one that matches the address you log in at.

Koinly → Add Wallet → search OKX

Step 7: Import your files

Choose Import from File and upload each statement, one at a time. Start with the oldest file.

Koinly OKX wallet → Import from File

Part 3: Read-only API key (non-UK or older accounts only)

OKX lists the API as unavailable to UK users. Use this part only if your account still lets you create API keys, for example a non-UK account. An API key is a code that lets Koinly read, but not move, your data. The API keeps recent trades in sync, but the files from Part 1 are still needed for older history.

Step 8: Create the API key on OKX

On the website, open your profile and select API and connections, then Create API key. In the app, open the menu, scroll to API and tap Create API key.

OKX profile → API and connections → Create API key

Step 9: Set Read permission only

Enter a name such as “Koinly” and set a passphrase. Tick Read only. Leave Trade and Withdraw unticked. You can add up to 20 IP addresses to the allowlist. Copy the API key, secret key and passphrase. OKX does not show the passphrase again.

OKX API key with Read permission only

Step 10: Paste the key into Koinly

Open your OKX wallet in Koinly, choose Setup auto-sync, paste the details and click Secure Import.

Koinly OKX wallet → Setup auto-sync → paste API details

Step 11: Review your transactions

Open the Transactions page and filter by OKX. Fix any “missing cost basis” warnings and check that deposits and withdrawals are matched to your other wallets.

Koinly Transactions filtered by OKX → review warnings

OKX limits at a glance

ItemLimit
Koinly API: tradesLast 3 months, up to 5,000 most recent trades
Koinly API: other transactionsLast 1 month
API key IP allowlistUp to 20 addresses
Sub-accountsOne key per sub-account; create it inside that sub-account
UK products not availableFutures, perpetual swaps, margin, options, bots, P2P, On-chain Earn

Common problems and fixes

  • Missing older trades: the API does not reach back far. Upload statement files for every earlier period.
  • Transfers between sub-accounts: these appear as internal moves. Mark them in Koinly as transfers between your own wallets.
  • Wrong Koinly integration: a key made on one OKX site will not work on another Koinly OKX option. Match the site you log in at.
  • Lost passphrase: delete the key and create a new one.

How OKX activity is taxed in the UK

Each time you sell or convert crypto on OKX, you make a disposal for Capital Gains Tax. For 2025/26, you pay 18% or 24% on gains above the £3,000 annual exempt amount, which covers all your assets. Earn and staking rewards are usually income when received. See our guide on how to report crypto tax in the UK.

FAQs

Can UK users connect OKX to Koinly by API?

OKX’s UK feature list marks the API as unavailable for UK users. Use statement files instead.

How far back does the OKX API go in Koinly?

Koinly says 3 months of trades and 1 month of other transactions. Use files for anything older.

Which OKX company serves UK customers?

OKX says UK customers are served by Aux Cayes FinTech Co. Ltd., registered in Seychelles.

Want someone to check your OKX import? Our crypto reconciliation service can match your balances before you file.

Sources

Table of Contents

On Key

Related Posts

Scroll to Top