latestOpenAPI 3.0.32026-08-224982,0272.8 MB
e445c15e5bee
Margin
Get net open margin positions
Returns the net open positions for the specified account.
get/api/prime/trading/v1/accounts/{accountId}/margin/netopenpositions
Path parameters
accountIdstring required
The ID of the account
Query parameters
currencystring[]
Filters on provided currencies if provided, otherwise returns net open positions for all currencies
Response
Net open positions
Example response
{
"netOpenPositions": [
{
"currency": "BTC",
"enterpriseId": "63925f940c259a00061853808ffea830",
"netOpenPosition": "-2.3242",
"netOpenPositionValue": {
"quantity": "-124017.22",
"currency": "USD"
},
"shortMarginPositionNotionalLimit": {
"quantity": "1000000.00",
"currency": "USD"
},
"longMarginPositionNotionalLimit": {
"quantity": "1000000.00",
"currency": "USD"
},
"unrealizedPnL": {
"quantity": "1200.00",
"currency": "USD"
},
"lastModified": "2024-07-29T21:13:09.000Z"
}
]
}