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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "getPredictionPositionHistory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| direction | No | ||
| pageIndex | No |