Closed trades
get_historyRead-onlyIdempotent
Settled and sold trades, newest first, with realized P&L, instrument_id and a win/loss/void tally; scope with window, since, until or run. A reset write-off is sold, close_reason account_reset.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | No | Since your last reset. | |
| full | No | ||
| limit | No | Default 20, max 100. | |
| month | No | Deprecated. | |
| since | No | 30d, YYYY-MM-DD or ISO. | |
| until | No | YYYY-MM-DD or ISO. | |
| window | No |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| trades | No | ||
| web_url | No | ||
| warnings | No | ||
| truncated | No | ||
| win_count | No | ||
| loss_count | No | ||
| void_count | No | ||
| forfeit_count | No | ||
| realized_pnl_dollars | No |