Retrieves position details for all subaccounts for a specific currency. Returns positions aggregated across all subaccounts, including size, average entry price, mark price, and P&L information.
Optionally include open orders for each subaccount by setting the with_open_orders parameter to true.
📖 Related Article: Managing Subaccounts
Scope: account:read
Query parameters
Currency, i.e "BTC", "ETH", "USDC"
The currency symbol
Optional parameter to ask for open orders list, default: false
Response
Success response
Example response
{
"result": [
{
"positions": [
{
"instrument_name": "BTC-PERPETUAL",
"user_id": 57874
}
],
"open_orders": [
{
"order_id": "ETH-100234",
"instrument_name": "BTC-PERPETUAL",
"creation_timestamp": 1536569522277,
"last_update_timestamp": 1536569522277,
"starbase_last_update_timestamp": 1536569522277000000,
"block_trade": true,
"trigger_order_id": "SLIB-370",
"combo_order_id": "103148386169",
"starbase_order_id": 103148386170,
"app_name": "Example Application",
"mmp_cancelled": true,
"oto_order_ids": [
"ETH-100234"
],
"primary_order_id": "ETH-100234"
}
]
}
]
}Changes
Changed in 4 of the 8 revisions of this API.13
- ○
added the required property
result/items/positions/items/user_idto the response with the200statusresponse-required-property-added
- ○
- ○
added the optional property
result/items/open_orders/items/starbase_client_order_idto the response with the200statusresponse-optional-property-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
removed the
speed_bumpedenum value from theresult/items/open_orders/items/order_stateresponse property for the response status200response-property-enum-value-removed
- ○
- ●
added the new
speed_bumpedenum value to theresult/items/open_orders/items/order_stateresponse property for the response status200response-property-enum-value-added
- ●