/api/prime/trading/v1/accounts/{accountId}/margin/positions/activityReturns unsettled fill legs and position transfers that make up the unsettled position as of a specified historical time range.
accountIdstringRequiredtransactionDateGtestring<date-time>transactionDateLtstring<date-time>currencyarray[string]typearray[string]fill-base-leg fill-quote-leg position-transfer offsetintegerDefault: 0limitintegerDefault: 500<= 500positionsActivity array[object] required {"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"}type string required fill-base-leg fill-quote-leg position-transferfill-base-legid string required 0d674606-431b-428f-83d1-b9199a6feb7dcurrency string required BTCquantity string required -2.5^-?[0-9]+(\.[0-9]+)?$enterpriseId string required 63925f940c259a00061853808ffea830accountId string required 669e42a3c3fa7a17bf8483e7296373e1transactionDate string <date-time>required 2025-07-29T21:13:09+00:00