DEX tax records: pulling your on-chain trading history
Every DEX trade is a public transaction, which sounds like good news for tax records until you try to build a cost-basis report from them. The chain has all the data. Nothing on the chain knows what you paid for the token you sold, and that gap is where the work is.
What the chain gives you
An explorer or a wallet export gives you, per transaction:
- Timestamp, hash, and the addresses involved
- Token amounts in and out, including gas
- The pools and contracts touched
That is a complete record of movements. It is not a record of value, because value depends on what each token cost when you acquired it.
The cost-basis gaps
The gaps that break automated reports:
- Tokens acquired off-chain: P2P purchases, mining, gifts, airdrops with ambiguous valuation
- Wrapped and unwrapped versions of the same asset, which look like trades but are not
- Liquidity provision: deposits and withdrawals that are not sales in most jurisdictions, but look like transfers
- Token swaps between assets of similar value, which some regimes treat as dispositions anyway
- Transactions across wallets you controlled but never labeled
Every gap is a place where a report will guess, and a guess in either direction is a problem at filing time.
The tooling layers
Three layers, in order of usefulness:
- Wallet and exchange exports: CSVs from every venue you traded on, pulled for the full period
- Chain analytics tools: services that reconstruct trades from transactions and label your wallets
- Spreadsheet reconciliation: the layer where you actually find the gaps
No single tool closes every gap. The pattern that works: export everything, reconcile wallet by wallet, and write down the acquisition story for anything the tools cannot explain.
The timing rule
Pull records before the tax deadline, not during it. Reconstructing a year of multi-chain trading under deadline pressure is where mistakes happen: missed wallets, mislabeled transfers, and assumptions that should have been questions.
The takeaway
The chain records movements, not cost basis. Export everything, label your wallets, reconcile the gaps by hand, and start early. The trading was easy. The paperwork is the trade.