Skip to main content

TradeExport

A bot's closed trades rendered as RFC 4180 CSV (UTF-8, header row first). Columns: trade_id, pair, side, open_date_utc, close_date_utc, amount, open_rate, close_rate, stake_amount, fee_abs, profit_abs, profit_pct, exit_reason, strategy, timeframe, mode. Times are UTC RFC 3339; numbers use '.' and no grouping; a dry-run bot's rows carry mode=dry_run (simulated, not taxable). Open trades are excluded because their profit is not realised.

type TradeExport {
filename: String!
csv: String!
rowCount: Int!
truncated: Boolean!
}

Fields​

TradeExport.filename ● String! non-null scalar​

Suggested download file name, e.g. trades-my-bot-2025-03-04.csv.

TradeExport.csv ● String! non-null scalar​

The CSV file content.

TradeExport.rowCount ● Int! non-null scalar​

Number of trade rows (the header excluded).

TradeExport.truncated ● Boolean! non-null scalar​

True when the bot has more closed trades than one export holds (100,000); the oldest were exported.

Returned By​

exportBotTrades query