Get positions
get_positionsLists open and closed futures or prediction-market positions for a chosen venue, returning unrealized P&L/mark values and an asOf timestamp so you can poll only changes.
Instructions
List open + historical positions for a venue. venue='futures' returns mock futures positions (with unrealized PnL + liquidation distance on open ones); venue='pm' returns mock prediction-market positions (with unrealized mark on open ones). Response includes asOf — pass it back as updatedSince on the next call to poll only positions that changed (catches worker-fired SL/TP, liquidations, and 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 |
|---|---|---|---|
| venue | Yes | Which venue's positions to list. | |
| agentTrace | No | Optional private trace metadata stored in the caller's ledger. | |
| updatedSince | No | ISO 8601 cursor: only positions whose row changed 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 |