Skip to the article
Token Wire

News from across crypto

How to export Fermi Swap trade history as a repeatable CSV

Export Fermi Swap trade history by anchoring to confirmed Ethereum trade hashes, reconciling indexed data, and saving a reusable CSV query.

The Token Wire Desk3 min read

How to export Fermi Swap trade history as a repeatable CSV

For a Fermi Swap export, collect the confirmed Ethereum transaction hashes for the swaps you need to record; every later step depends on those anchors. Get those hashes from Fermi Swap, where your executed trades are recorded on Ethereum. Then pull matching indexed records for the exchange from Bitquery, reconcile them against the confirmed receipts, and save the reviewed result as a CSV with its query. Public execution records make this repeatable: because every trade is on Ethereum, the same retrieval can be rerun and produce the same reviewed record.

  • Confirmed exchange records suit recurring exports because each swap leaves an Ethereum transaction hash.
  • Wallet activity views suit a quick look only, because clearing MetaMask activity removes local history without cancelling broadcast transactions.
  • Recurring records should be anchored to confirmed executions through the linked service.

How to export Fermi Swap trade history

Exporting this exchange's history has four steps: set boundaries, pull records, save CSV, reconcile. The exchange fills trades from its own token inventory, so every swap leaves an on-chain receipt.

  1. Define wallets and block boundaries. Confirm you have historical-data access and an approved reporting scope, list each wallet address that traded, and record the confirmed transaction hash for every executed swap. Set the block range for the reporting period, then save the reviewed query and the export schema before running anything.
  2. Run the saved query in Bitquery. It identifies these trades using protocol fermiswap and network Ethereum. Reconcile the returned rows against the known hashes and the wallet's routed activity, then paginate through the complete range so no block is skipped.
  3. Export the result as CSV. Include hash, block, timestamp, token contracts, amounts, and wallet attribution. Save the query text and schema alongside the file; that is what makes the export rerunnable.
  4. Reconcile the exported rows against the confirmed receipts. A confirmed trade may await indexing, so if a known receipt is missing, do not finalize. Wait, rerun an overlapping block window, and deduplicate by transaction hash plus event identity. Event identity is the swap event's position in the transaction's logs, because one transaction can contain more than one swap.
  5. Check the archived checkpoint. Obtain reviewer sign-off, then confirm that every known receipt is present and no event key appears twice. If both hold, the export is complete; if not, rerun the overlapping window and reconcile again.

Wallet activity vs. on-chain records

Clearing MetaMask activity removes local history without cancelling broadcast transactions. The difference shows up when you reopen the wallet: the list is empty, but the transaction hashes still resolve on Ethereum. Mixing the two leads to a false “nothing happened” conclusion, so treat the on-chain record as the source of truth for the export.

Cleared wallet history and token approvals

Cleared wallet history and token approvals both need a decision before you archive an export.

Can cleared wallet history be recovered?

Yes, reconstruct it from public records. A cleared MetaMask activity list is local; the underlying Ethereum transactions still exist. Use the same indexed-export approach with the wallet address and block range to rebuild the list.

Should approvals count as trades?

No, retain them separately. Token approvals are not swaps; they set permissions. Including them in the trade history makes the export harder to reconcile.