Get my trades
get_my_tradesReview realized PnL from closed spot, futures, and prediction-market trades. Poll with the updatedSince cursor to surface new stop-loss, take-profit, liquidation, or settlement closes.
Instructions
Unified realized-PnL log of CLOSED trades across venues (spot fills, closed/liquidated futures, settled prediction-markets), most-recent first — the agent's memory of what it did and what won/lost. Use it to review performance before deciding the next move. Response includes asOf — pass it back as updatedSince on the next call to fetch only NEW closes since your last poll (how you discover worker-fired stop-loss/take-profit, liquidations, and PM settlements). Paper trading only (virtual mUSD). Fills follow paper_execution_v1 with a disclosed execution cost; see executionModel in quote/trade results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows (1-100, default 25). | |
| venue | No | Filter by venue (default all). | |
| agentTrace | No | Optional private trace metadata stored in the caller's ledger. | |
| updatedSince | No | ISO 8601 cursor: only trades closed/settled since this instant. Pass the previous response's asOf back here. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| body | No | ||
| httpStatus | Yes | ||
| ledgerStatus | No | ||
| ledgerEventId | No |