Skip to main content

Get position update events

GET 

/positions

Lists position events for authenticated account.

Request

Query Parameters

    since timestamp-milliseconds

    Timestamp in milliseconds.

    before timestamp-milliseconds

    Timestamp in milliseconds.

    sort string

    Possible values: [asc, desc]

    Default value: desc

    Determines the order of events in response(s).

    • asc = chronological
    • desc = reverse-chronological
    continuation_token base64

    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.

    count int64

    Possible values: >= 1

    The maximum number of results to return. The upper bound is determined by a global limit.

    opened boolean

    Determines status of the position that should be included in response(s).

    • true = return positions that have been opened within given time range.
    • false = return positions that have not been opened within given time range.
    closed boolean

    Determines status of the position that should be included in response(s).

    • true = return positions that have been closed within given time range.
    • false = return positions that have not been closed within given time range.
    tradeable string

    If present events of other tradeables are filtered out.

Responses

Schema
    accountUid uuidrequired
    len uint64required
    serverTime date-time
    elements object[]required
  • Array [
  • account_uid stringrequired

    Account UID

    tradeable stringrequired
    old_position doublerequired
    old_average_entry_price doublerequired
    new_position doublerequired
    new_average_entry_price doublerequired
    fill_time timestamp-millisecondsrequired
    fee doublerequired
    fee_currency stringrequired
    realized_pnl doublerequired
    position_change stringrequired

    Possible values: [Open, Close, Increase, Decrease, Reverse]

  • ]
  • continuationToken base64

    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.

Loading...