data_get_closed_positions
Retrieve completed or closed positions for a wallet to review realized exposure and past bets. Input a wallet address to get historical position data.
Instructions
Fetch closed positions for one wallet.
Use this tool when the user wants completed or no-longer-open positions, such as reviewing realized exposure or prior bets.
Prefer this tool over get_positions when historical closed exposure is
specifically requested. A common next step is get_activity or
get_trades to explain how the wallet entered and exited those markets.
The input should be a wallet address, typically in 0x... format.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"args": "<args>"
},
"name": "data_get_closed_positions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | Wallet query arguments. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | Yes | ||
| positions | No | ||
| count | Yes | Return the number of positions. Returns: int: Number of returned positions. |