Get position update events
GET/positions
Lists position events for authenticated account.
Request
Query Parameters
asc
= chronologicaldesc
= reverse-chronologicaltrue
= return positions that have been opened within given time range.false
= return positions that have not been opened within given time range.true
= return positions that have been closed within given time range.false
= return positions that have not been closed within given time range.
Timestamp in milliseconds.
Timestamp in milliseconds.
Possible values: [asc
, desc
]
Default value: desc
Determines the order of events in response(s).
Opaque token from the Next-Continuation-Token
header used to continue listing events. The
sort
parameter must be the same as in the previous request to continue listing in the same
direction.
Possible values: >= 1
The maximum number of results to return. The upper bound is determined by a global limit.
Determines status of the position that should be included in response(s).
Determines status of the position that should be included in response(s).
If present events of other tradeables are filtered out.
Responses
- 200
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
elements object[]required
Account UID
Possible values: [Open
, Close
, Increase
, Decrease
, Reverse
]
Opaque token to pass to the next request to continue listing events. The sort
parameter
must be the same as in the previous request to continue listing in the same direction.
{
"accountUid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"len": 0,
"serverTime": "2024-07-29T15:51:28.071Z",
"elements": [
{
"account_uid": "string",
"tradeable": "string",
"old_position": 0,
"old_average_entry_price": 0,
"new_position": 0,
"new_average_entry_price": 0,
"fill_time": 1604937694000,
"fee": 0,
"fee_currency": "string",
"realized_pnl": 0,
"position_change": "Open"
}
],
"continuationToken": "string"
}