Export help · OKX

How to export your OKX transaction history for your crypto tax report

If you used OKX, you need two downloads from the Order Center: your trading history, which records your trades, and your funding history, which records deposits, withdrawals and other movements in your funding account. The screen only shows the last 90 days, but the download goes further back. This guide shows you the steps, what the columns mean and how CryptoTaxOwl reads both files in your browser.

  • CSV (two files)
  • Trading history and Funding history downloads (Order Center)
  • Steps match OKX’s help centre
  • Updated 7 October 2026

How to export your OKX history

  1. 1

    Open the Order Center

    Sign in on the OKX website, hover over Assets in the top bar and select Order Center.

  2. 2

    Download your trading history

    Select Trading history from the menu bar, then Download. Choose a date range and select Export. OKX says downloadable records are available from February 2021 onwards. If the date picker limits how far you can go in one export, create several exports that together cover your whole history.

  3. 3

    Download your funding history

    Select Funding history, then Download. Choose the date range, report type and format if offered (pick CSV), and select Export. This file holds deposits, withdrawals and transfers between your accounts.

  4. 4

    Collect the files when they are ready

    Once each report is generated, select Download to save it. Statements are produced on a T+1 basis, so today’s activity is only available from tomorrow.

  5. 5

    Leave the files unedited

    Don’t open and re-save the CSVs in a spreadsheet program before importing. That can change dates, number formats and the file encoding.

  6. 6

    Import both files together

    Drop the trading and funding files into the crypto tax calculator at the same time. They are read in your browser and not uploaded.

These steps follow OKX’s own help pages as checked on 7 October 2026. Exchanges rename menus often, so if something looks different, use the help link below and look for the full transaction history export. Wrong or out of date? Tell us at errors@cryptotaxowl.com.

What the columns mean

Column names as seen in open-source importers; OKX’s help article does not list them. OKX has changed these exports before, and some files include extra columns such as position fields. Check the header row of your own files.

ColumnWhat it means
idOKX’s row identifier. In the trading history, the two legs of one trade share an id.
Order idThe order the fill belongs to (trading history).
TimeWhen the row happened. Check whether your file states a time zone.
Trade TypeThe product, such as Spot, or Transfer for moves between your OKX accounts. Derivatives products appear here too.
InstrumentThe market, for example BTC-USDT.
TypeIn the trading file, the side of the leg (Buy or Sell). In the funding file, the kind of movement, such as a deposit or withdrawal.
AmountThe quantity of the asset on that row.
UnitThe asset of the amount. The trading file has a second Unit column for the balance figures.
PLProfit or loss reported by OKX, used for derivatives. Not used for spot tax calculations.
FeeThe fee charged on the row.
Balance Change / BalanceHow your balance of that asset changed and the balance afterwards (trading file).
Before Balance / After BalanceYour balance of the asset before and after the movement (funding file).
SymbolThe asset moved (funding file).

Quirks to know

  • Two files, two jobs. The trading history has your trades; the funding history has your deposits and withdrawals. Without the funding file, deposits look like missing purchases.
  • One trade, two rows. Each spot trade appears as a Buy leg and a Sell leg sharing an id (or, sometimes, only an Order id).
  • 90 days on screen, more in the download. The Order Center only displays recent activity, but the download covers older records.
  • Internal transfers. Moving funds between your funding and trading accounts shows up in both files. These are not disposals.
  • Account statements are different. The monthly or custom Account statement is a separate report. Use the trading and funding history downloads for import.

How CryptoTaxOwl reads these files

Each OKX file is recognised by its header fingerprint and sent to the matching parser.

  • In the trading file, the Buy and Sell legs that share an id are grouped into one trade, with the fee attached.
  • Rows with Trade Type Transfer are treated as moves between your own OKX accounts, not trades.
  • Values from the file come first: a trade against a fiat currency is valued by its fiat leg. Bundled daily prices fill gaps only. Stablecoins such as USDT are crypto, not cash, so a USDT trade is still a disposal.
  • Funding rows become deposits and withdrawals that can be matched with your other wallets.
  • Any value the parser doesn’t know becomes an “Unknown type” issue you resolve. It is never quietly treated as taxable or non-taxable.

The files stay in your browser. CryptoTaxOwl never asks for API keys, recovery phrases or passwords.

For withdrawals to your own wallets, see transfers between your own wallets.

Known issues and gaps

  • Derivatives, margin and futures rows are flagged as unsupported and excluded by default. Profit and loss on derivatives is out of scope in this version.
  • Earn and staking. Savings, staking and similar products may appear as their own types. Rewards may need classifying as income in the issues queue.
  • Missing cost basis. Crypto bought elsewhere and deposited to OKX arrives without its purchase cost unless you import that source too.
  • Older history. OKX says downloadable records start in February 2021. If you traded earlier, check with OKX what older records are available.

If your file isn’t recognised

If OKX has changed the layout and a file isn’t recognised:

The how it works page describes the template and the import checks.

OKX export: frequently asked questions

Do I need both the trading history and the funding history?

Yes. Trades are only in the trading history, and deposits and withdrawals are only in the funding history. Import both so transfers can be matched and costs traced.

Why can I only see 90 days of history on screen?

The Order Center display is limited to recent activity. Use Download, which OKX says covers records from February 2021.

Why does each trade appear twice?

OKX records each side of a spot trade as its own row. CryptoTaxOwl groups the two rows into a single trade using their shared id.

Can I use the monthly account statement instead?

Use the trading and funding history downloads instead. The account statement is a separate report, and CryptoTaxOwl’s OKX parsers are built for the trading and funding history files.