How to export your OKX trade history
You need the full list of your OKX trades for taxes, a trading journal or your own analysis. On screen OKX shows only recent months, but the download covers the whole history.
Steps
- Log in to OKX on the website (the export is easier on a computer).
- Open Assets in the top menu and choose Order center.
- Go to the Trading history tab.
- Click Download on the right, choose the date range — the whole period you need — and confirm Export.
- When the file is ready, download it. Large ranges can take a few minutes.
Exchanges rename menu items from time to time. If a name differs slightly, look for the closest item — the path stays the same.
What you get in the file
- Every executed trade: instrument, side, price, size, fee and time.
- Spot, margin and futures trades together — filter by instrument if you need only futures.
- Deposits, withdrawals and transfers are a separate report (Funding history).
You may not need to export at all
Buy&Sell connects to OKX, Bybit, Binance and Hyperliquid with a read-only key and loads your trade history on its own — with fees, funding, Earn and transfers already counted. No files, no spreadsheets.
No card, no auto-charges · read-only key
Questions
Why does OKX show only a few months on screen?
The on-screen list is shortened; the downloaded file covers the full period you choose.
Should I open the file in Excel before importing it somewhere?
Better not: saving it again in Excel or Google Sheets can change the format and break the import.