Skip to main content

trades

Query live trade history from the SQLite database.

Usage

gopher trades [flags]

Flags

FlagDescriptionDefault
--traderFilter by trader IDAll traders
--symbolFilter by symbol (e.g., BTC)All symbols
--modeFilter by mode (paper or live)All modes
--sinceFilter trades after date (YYYY-MM-DD)All time
--limitNumber of results50
--jsonOutput as JSONfalse
--dbSQLite database path~/Documents/Gopher/gopher.db

Examples

# Recent trades
gopher trades --limit 20

# Filter by symbol and date
gopher trades --symbol BTC --since 2025-01-01

# Export as JSON
gopher trades --trader trader-1 --json > trades.json