Closed trades — one row per round trip with realised P&L net of fees and funding. Cursor-paged: echo BOTH nextCursor (as before) and nextCursorId (as before_id), or trades sharing a close time are skipped across the page boundary (scope: trading:read)
get/v1/trading/trades
Request
- Base URL: https://app.texttoquant.com/api
- URL: https://app.texttoquant.com/api/v1/trading/trades
- Auth: one of:
- API key in header x-api-key
- HTTP bearer
Query parameters
source'live' | 'paper' | 'manual' | 'all'
Which ledger. "live" means real money and expands to live+manual; "paper" is simulated.
deployment_idstring uuid
limitinteger
beforestring date-time
Cursor: nextCursor from the previous page.
before_idstring uuid
Cursor tie-break: nextCursorId from the previous page.
fromstring date-time
ISO-8601 window start.
tostring date-time
ISO-8601 window end.
symbolsstring
Comma-separated venue symbols, e.g. BTCUSDT,ETHUSDT.
direction'long' | 'short'
result'win' | 'loss'
dowsstring
Days of week, 0=Sun..6=Sat, e.g. 1,2,3. Listing all seven is treated as no filter.
hour_frominteger
Session start hour. IGNORED unless hour_to is sent too — a lone bound is not guessed at.
hour_tointeger
Session end hour. Required alongside hour_from.
tzstring
IANA timezone for day/hour bucketing.
Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.