Account orders

Streams all changes made to an account's open orders in any market. An order that has been cancelled/filled will be streamed and return empty.

Refer to Websocket for establishing the websocket connection.

Params

{
    "method": "subscribe",
    "params": {
        "source": "account_orders",
        "account": "42trU9A5..."
    }
}

Stream

{
  "channel": "account_orders",
  "data": [
    {
      "i": 1559506586,
      "I": null,
      "s": "BTC",
      "d": "bid",
      "p": "80000",
      "a": "0.00013",
      "f": "0",
      "c": "0",
      "t": 1765016203314,
      "st": null,
      "ot": "limit",
      "sp": null,
      "ro": false
    }
  ],
  "li": 1559525416
}
Field
Type
Description

'i'

integer

Order ID

'I'

Full UUID string

Client order ID

's'

string

Symbol

'd'

string

Side: [bid, ask]

'p'

decimal string

Average filled price

'a'

decimal string

Original amount

'f'

decimal string

Filled amount

'c'

decimal string

Cancelled amount

't'

integer

Timestamp (milliseconds)

'st'

string

Stop type (TP/SL)

'ot'

string

Order type [market, limit]

'sp'

string

Stop price

'ro'

bool

Reduce only

'li'

integer

Exchange-wide nonce. Used to reliably determine exchange event ordering. Sequential and not subject to clock drift.

Last updated