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.
Input Schema
TableJSON 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 |