Coinbase offers decentralized exchange (DEX) trading for assets not listed on their centralized exchange. However, Coinbase does not include DEX transactions in their API, which means CoinTracker and other crypto tax solutions cannot automatically sync this activity. This guide will show you how to manually import your Coinbase DEX transactions using a CSV file.
Import your Coinbase DEX transactions via CSV
In order to import your DEX transactions, you will need to download your DEX transactions from Coinbase and fill in the missing information before importing into CoinTracker. You can do so by taking the following steps:
- Log into Coinbase.
- Download your Transactions statement CSV from the Statements page. Coinbase provides transactions CSV files on a per-year basis, so you may need to download multiple files if you've traded across different years or enter a custom date range which includes your full DEX trading activity.
- Edit the CSV to include proper asset identifiers. The CSV has limitations for DEX transactions which require manual editing:
- If you have traded Base DEX assets, the Asset column only includes the symbol. Because many assets can have the same symbol, you will need to update the symbol to include the blockchain. For example, update PEPE to PEPE-BASE. If you have traded two different PEPE tokens on Base, you will need to update to PEPE-BASE-1 and PEPE-BASE-2
- If you have traded Solana DEX assets, the Asset column is currently blank. You will need to update the column for each DEX trade to include the blockchain information (e.g., PEPE-SOLANA if you have only traded one type of PEPE token on Solana. PEPE-SOLANA-1 + PEPE-SOLANA-2 if you have traded two different PEPE tokens on Solana)
4. Import the CSV to CoinTracker:
- Go to your existing Coinbase account on the Wallets page.
- Select the [...] icon.
- Select Import transactions.
- Upload your updated Coinbase file and select Import.
Note: CoinTracker doesn't deduplicate DEX imports. Don't import the same Coinbase DEX transactions more than once.
If you'd like to see DEX transactions in the Coinbase API, please upvote this Canny request.
If you run into any trouble, please don't hesitate to reach out to our support team for help.