latestOpenAPI 3.0.32026-08-224982,0272.8 MB
e445c15e5bee
Margin
Get positions activity
Returns unsettled fill legs and position transfers that make up the unsettled position as of a specified historical time range.
get/api/prime/trading/v1/accounts/{accountId}/margin/positions/activity
Path parameters
accountIdstring required
The ID of the account
Query parameters
transactionDateGtestring date-time
Return activity with transactionDate greater than or equal to this timestamp.
transactionDateLtstring date-time
Return activity with transactionDate less than this timestamp.
currencystring[]
Filter by currencies. If omitted, returns activity for all currencies.
typestring[]
Filter by activity type.
offsetinteger
Pagination offset.
limitinteger
Number of items per page.
Response
Positions activity
Example response
{
"positionsActivity": [
{
"type": "fill-base-leg",
"id": "0d674606-431b-428f-83d1-b9199a6feb7d",
"currency": "BTC",
"quantity": "-2.5",
"enterpriseId": "63925f940c259a00061853808ffea830",
"accountId": "669e42a3c3fa7a17bf8483e7296373e1",
"transactionDate": "2025-07-29T21:13:09+00:00"
}
]
}