get_positions
Retrieve all open trading positions for a specified subaccount, including PnL, mark prices, leverage, and liquidation data. Filter by currency or instrument type as needed.
Instructions
Get all open positions for a subaccount including unrealized PnL, mark price, leverage, and liquidation price. Requires authentication.
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": {
"subaccount_id": "<subaccount_id>"
},
"name": "get_positions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subaccount_id | Yes | Subaccount ID to query positions for | |
| currency | No | Filter by currency (optional) | |
| instrument_type | No | Filter by instrument type |