GET
Get net open positions snapshot
Returns the net open positions snapshot as of a given time for the specified account.
Path Params
-
accountIdstring requiredThe ID of the account
Query Params
-
transactionDateLtstring date-time requiredReturns unsettled positions based on transactions that occurred before this timestamp. -
currencyarray of stringsFilter results to specific currencies. If omitted, returns unsettled positions for all currencies with non-zero balances. -
useFutureTransfersbooleanIf true, applies position transfers sent after transactionDateLt to cover short positions as of transactionDateLt.
Responses
200
Net open positions snapshot
Response Body
object
-
netOpenPositionsarray of objects requirednetOpenPositions object
-
currencystring requiredThe currency symbol for this position -
enterpriseIdstring requiredThe enterprise ID associated with this position -
accountIdstring requiredThe trading account ID -
netOpenPositionstring requiredThe net position quantity at the snapshot time. Negative values indicate short positions (borrowed/owed), positive values indicate long positions (owned). -
appliedFutureTransfersstring requiredThe total amount of pending transfers (after cutoff) applied to cover this position (only when useFutureTransfers=true). Always zero for long positions. For short positions, shows how much of the position will be covered by pending incoming transfers. -
earliestTransactionDatestring date-time requiredTimestamp of the earliest transaction that contributed to this position -
latestTransactionDatestring date-time requiredTimestamp of the most recent transaction that contributed to this position (before the cutoff) -
latestFutureTransferDatestring date-time nullableTimestamp of the most recent pending transfer applied to this position. Only present when useFutureTransfers=true and pending transfers were applied. Null otherwise.
-
400
Bad request - Invalid or missing query parameters
Response Body
object
-
errorstring required -
errorNamestring required -
reqIdstring required -
contextobjectOptional structured metadata for REST validation failures. The schema is fixed for client contract stability.context object
-
errorNamestring requiredSame value as the top-level errorName. -
fieldstringRequest field associated with the validation failure. -
messagestringHuman-readable field-level validation message.
-
401
Unauthorized - Invalid or missing authentication
Response Body
object
-
errorstring required -
errorNamestring required -
reqIdstring required -
contextobjectOptional structured metadata for REST validation failures. The schema is fixed for client contract stability.context object
-
errorNamestring requiredSame value as the top-level errorName. -
fieldstringRequest field associated with the validation failure. -
messagestringHuman-readable field-level validation message.
-
403
Forbidden - Insufficient permissions
Response Body
object
-
errorstring required -
errorNamestring required -
reqIdstring required -
contextobjectOptional structured metadata for REST validation failures. The schema is fixed for client contract stability.context object
-
errorNamestring requiredSame value as the top-level errorName. -
fieldstringRequest field associated with the validation failure. -
messagestringHuman-readable field-level validation message.
-
500
Internal Server Error
Response Body
object
-
errorstring required -
errorNamestring required -
reqIdstring required -
contextobjectOptional structured metadata for REST validation failures. The schema is fixed for client contract stability.context object
-
errorNamestring requiredSame value as the top-level errorName. -
fieldstringRequest field associated with the validation failure. -
messagestringHuman-readable field-level validation message.
-