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": null,
"a": "29580",
"c": "0",
"d": "bid",
"f": "0",
"i": 560509,
"p": "0.27046",
"ot": "limit",
"ro": false,
"s": "XLM",
"sp": null,
"st": null,
"t": 1749054246822
},
// ... other account orders
]
}
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
Price
'a'
decimal string
Initial amount
'f'
decimal string
Filled amount
'c'
decimal string
Cancelled amount
'st'
decimal string
Stop price
'sp'
integer
Stop parent order ID
'ot'
string
Order type
'ro'
bool
Reduce only
't'
number
Updated at time (milliseconds)
Last updated