Skip to content

Reference

Exports & API

Export a wallet’s trade history as CSV or JSON. Use Export on a report, or the export link for scripts.

Export from a report

Export is the arrow icon in the report header. On Hyperliquid, Solana and the EVM chains it has CSV, JSON and Copy API link. CSV downloads three files: trades, open positions and daily equity. JSON downloads one file with the same three tables, plus the wallet, the chain, the period, a generated_utc time and a metadata block. On Bitcoin, which has no trades, CSV is the daily equity file and there is no API link.

On Polymarket, CSV is one file per table: Markets, Events, Activity, Transfers, Open positions and Booked PnL. JSON is one file with all of them. Copy API link is there too.

The export link

GET /api/wallet/{address}/export
  ?chain=hyperliquid
  &file=all
  &format=json
  &period=ALL
ParameterWhat it takes
addressA full wallet address, in place of the placeholder in the path.
chainsolana, hyperliquid, base, ethereum, arbitrum, robinhood, polygon, polymarket, bitcoin
filetrades, open_positions, equity or all. On Polymarket: markets, events, trades, activity, flows, open_positions, pnl or all. On any chain, metadata (JSON only) returns just the scan and coverage details. The default is all.
formatjson (the default) or csv. CSV is one table, so it needs a table name in file.
period1W, 2W, 1M, 3M, 6M, 1Y, ALL

For the whole report in one file use file=all&format=json. A request for file=all&format=csv, or for any file name or format that does not exist, answers 400 with a message that says what to choose.

The link reads what we have stored and starts no scan. For a wallet that has never been scanned it answers 404 with the code not_ready: open the report first, then ask again. For a Hyperliquid wallet with 5,000 stored rows or more it answers 413: open the report and use CSV or JSON in its Export menu. Every answer carries the headers x-xray-chain, x-xray-synced-at (unknown until a scan has finished), x-xray-score-model, x-xray-export-version and x-xray-coverage (complete or partial).

In the JSON, generated_utc is when the file was made. metadata.synced_at is when the wallet was last scanned, and null while its first scan has not finished. metadata.coverage says whether the record is complete, and lists in plain sentences what the scan left out, such as older Hyperliquid fills, transfers kept only as daily totals, or a source that could not answer. It also counts the rows left out of the statistics and lists price warnings.

Read the tables

TableColumns
tradestrade_id, asset, mint, side, entry_time_utc, entry_price_usd, entry_qty, entry_value_usd, entry_tx, exit_time_utc, exit_price_usd, exit_qty, exit_value_usd, exit_tx, holding_hours, fees_usd, gross_pnl_usd, net_pnl_usd, return_pct, r_multiple, price_source, partial_exit, below_threshold, unknown_basis
open_positionsasset, mint, entry_time_utc, entry_tx, qty, entry_price_usd, cost_usd, mark_price_usd, value_usd, unrealized_pnl_usd, price_source
equitydate, equity_usd, deposits_usd, withdrawals_usd, daily_return, drawdown_pct
Polymarket marketscid, title, eventSlug, outcomes, status, invested, realized, unrealized, pnl, value, ts, endDate
Polymarket eventsslug, title, status, markets, invested, pnl, ts
Polymarket tradest, type, usdc, size, price, side, cid, outcome, hash
Polymarket activityt, type, usdc, size, price, side, cid, outcome, hash
Polymarket flowst, usd, kind, token, peer, hash
Polymarket open_positionsasset, cid, title, eventSlug, outcome, size, avgPrice, initialValue, curPrice, currentValue, cashPnl, realizedPnl, redeemable, endDate
Polymarket pnldate, pnl, dd, ddPct

In trades, return_pct is 100 × net / entry value, and r_multiple is in units of the wallet’s typical loss (empty while that is unknown). On Hyperliquid, gross_pnl_usd already includes funding. Tiny trades are in the file, marked below_threshold. Sells of tokens with no known cost are in the file too, marked unknown_basis, with an empty entry time and an entry value of 0, so their net result is the whole sale. The report leaves them out of PnL. Leave them out of your sums too.

Limits

The export link works from saved snapshots, and a download never forces a fresh scan. Each visitor can make 8 export requests in 10 minutes. There is no service guarantee for the link. Check the status code, the x-xray-coverage header and metadata.coverage before you rely on exported values.