getPredictionPositionHistory
Retrieve closed prediction position history for an authenticated user, showing realized P&L and final outcome (WIN/LOSE/MANUAL_CLOSE). Use to summarize prediction trading performance.
Instructions
Query the authenticated user's historical prediction positions that have been closed (either by manual sell, market resolution, or expiry).
Returns realized P&L and final outcome for each closed position.
AI agent can use this to summarize the user's prediction trading performance.
Agent hint: Use this to see the user's closed prediction position history and realized P&L. For current open positions, use getPredictionPositionList instead. result shows WIN/LOSE/MANUAL_CLOSE and the amount won or lost.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| direction | No | ||
| pageIndex | No |