← All Guides

How to Export Your OKX Transaction History as CSV

Published August 19, 2026

OKX is one of the world's largest cryptocurrency exchanges by volume, offering spot trading, derivatives, and Web3 services. If you're preparing your taxes, tracking portfolio performance, or building a complete record of your crypto activity, exporting your transaction history from OKX is essential. The platform provides CSV exports for both order history and trading activity, but the process varies depending on which records you need and how far back you want to go.

This guide walks you through the complete export process on OKX. You'll learn how to download your order history, trading records, and account statements in CSV format, understand the differences between these exports, and navigate the platform's time-range limitations so you get all the data you need.

Understanding OKX Export Options

OKX offers several different types of exports, and choosing the right one matters. Order history shows you every order you've placed, including unfilled or canceled orders. This is useful if you want a complete audit trail of your trading activity. Trading history, on the other hand, only includes executed trades — the transactions that actually completed. For most users focused on tax reporting or cost basis tracking, trading history is what you need, since it reflects the actual buys and sells that affect your holdings.

There's also a broader account statement export that includes deposits, withdrawals, and other account-level activity beyond just trades. If you've moved funds in and out of OKX or participated in staking or lending, you'll want to grab that data too. The good news is that all of these exports are available in CSV format, which makes them compatible with tax software, portfolio trackers, and spreadsheet analysis.

Exporting Your Order History

To download your order history, log into the OKX website using a desktop browser. The export features aren't fully available on mobile, so a computer is your best bet. Once you're logged in, navigate to the Assets section from the main menu. From there, select Order center, then click on Order history. You'll see a list of all your recent orders with filters at the top for date range, instrument type, and order status.

Look for the Download button, usually near the top right of the order history view. Clicking it opens a dialog where you can configure your export. You'll be asked to select the instrument type if you've traded multiple asset classes — for example, spot, futures, or options. You can export all instruments at once or filter to a specific category. Next, set your date range. OKX lets you choose custom start and end dates, but be aware that very large date ranges may require you to split the export into smaller chunks depending on the volume of your activity.

The platform also gives you the option to hide canceled orders. If you only care about completed trades, enabling this filter will clean up your export. Once you've set your preferences, choose CSV as the file format — PDF is available too, but CSV is what you need for analysis or import into other tools. Click Export, and OKX will generate the file. Depending on how much data you're requesting, this can take a few seconds to a minute.

When the export is ready, you'll have several options: download it directly, copy a download link that's valid for one hour, or have it sent to your registered email. If you choose the link option, make sure to download the file promptly, as the link expires quickly. Save the CSV somewhere safe — ideally in a dedicated folder for your crypto records if you're managing exports from multiple exchanges.

Exporting Your Trading History

Trading history is similar to order history but focused exclusively on executed trades. To access it, go back to the Order center and select Trading history instead of Order history. The interface is nearly identical, with the same download button and configuration options. One key difference: trading history displayed on screen typically only shows the most recent ninety days of activity. If you need records older than that, you'll have to use the download feature to pull historical data.

OKX allows you to download trading history dating back to February 2021, which covers the period when the platform rebranded from OKEx to OKX and standardized its data export tools. If you started trading before that, older records may require contacting support or using the API to retrieve. For most users, though, the download tool will capture everything you need.

Configure your date range, select your instruments, choose CSV format, and export. As with order history, you can download the file immediately or receive a link. If you have years of trading activity, consider breaking the export into annual chunks to keep file sizes manageable and make it easier to process the data year by year for tax purposes.

Account Statements for Full Activity

If you need a complete record of all activity on your account — not just trades, but deposits, withdrawals, staking rewards, referral bonuses, and any other transaction types — you'll want to download your account statements. This option is usually found under the Account or Assets menu, often labeled as Statements or Account History. The export process is similar: select your date range, choose CSV, and download.

Account statements are particularly important if you've transferred crypto between OKX and other wallets or exchanges. Each transfer generates two records: an outbound withdrawal from one platform and an inbound deposit to another. Matching these up manually can be a headache, especially if you've made dozens of transfers. Having both your OKX statement and the corresponding data from your other platforms is essential for accurate reconciliation.

What to Do With Your OKX Data

Once you've downloaded your CSV files from OKX, the next step depends on your goal. If you're doing taxes, you'll likely import the files into crypto tax software that can parse the data, calculate capital gains, and generate the forms you need. Most major crypto tax platforms support OKX imports, though you may need to specify the file format or mapping during the upload process.

If you're tracking portfolio performance, you might combine your OKX data with exports from other exchanges to see your overall holdings and profit and loss across platforms. This is where things get tricky. OKX's CSV format is different from Coinbase's, Kraken's, and Binance's. Each exchange structures its data differently, uses different column headers, and may calculate fees or market values in slightly different ways. Manually merging these files is tedious and error-prone.

For recordkeeping purposes, you might just want an archive of your activity in case you ever lose access to your account or OKX changes its historical data retention policies. In that case, exporting annually and storing the files securely is a smart habit.

Managing Multi-Exchange Complexity

If OKX is your only exchange, you're in relatively good shape. Download your CSVs, run them through your tax software or spreadsheet, and you're done. But most active crypto users don't stick to one platform. You might buy on Coinbase, trade on OKX, and store long-term holdings in a hardware wallet. Each of those steps generates transaction records in different systems, and none of them automatically sync with each other.

This is where Crypto Transaction Log comes in. Instead of manually merging CSVs, matching transfers, and hunting down missing transactions, you import all your exchange data into one unified log. The tool automatically identifies transfers between platforms, links deposits to withdrawals, tracks cost basis across trades, and gives you a single coherent view of your entire crypto history. No per-transaction fees, no subscription tiers based on volume — just import your data and see the whole picture.

The free tier handles unlimited transactions, which means you can import years of OKX data along with records from every other exchange or wallet you've used. It's designed specifically to solve the multi-platform reconciliation problem that CSV exports create. You have the raw data from OKX; now you need a way to make it work seamlessly with everything else.

Final Thoughts

Exporting your OKX transaction history is straightforward once you know where to look. Use the Order center to download order and trading history, and check the Account section for full account statements. Set your date ranges carefully, choose CSV format, and export. If you have multiple years of activity, break it into manageable chunks. The platform makes the data available; the challenge is what you do with it next.

If you're working across multiple exchanges or wallets, raw CSVs are only the beginning. You need a tool that can merge, deduplicate, and reconcile records from different platforms into a single accurate timeline. That's what Crypto Transaction Log does. Import your OKX data and everything else, and get a complete, unified record of your crypto activity. No manual matching, no spreadsheet headaches — just clean data you can trust.

Stop Wrestling with Spreadsheets

Import your OKX CSV and all your other exchange exports into one unified transaction log. Track cost basis, reconcile transfers, and get your crypto records in order — no subscription required.

Track your crypto free →