Account trades
Streams all trades that take place for an account
Refer to Websocket for establishing the websocket connection.
Params
{
"method": "subscribe",
"params": {
"source": "account_trades",
"account": "42trU9A5..."
}
}Stream
{
"channel": "account_trades",
"data": [
{
"h": 80063441,
"i": 1559912767,
"I": null,
"u": "BrZp5bidJ3WUvceSq7X78bhjTfZXeezzGvGEV4hAYKTa",
"s": "BTC",
"p": "89477",
"o": "89505",
"a": "0.00036",
"te": "fulfill_taker",
"ts": "close_long",
"tc": "normal",
"f": "0.012885",
"n": "-0.022965",
"t": 1765018588190,
"li": 1559912767
}
]
}'h'
integer
History ID
'i'
integer
Order ID
'I'
Full UUID string
Client order ID
'u'
sting
Account address
's'
string
Symbol
'p'
decimal string
Price
'o'
decimal string
Entry price
'a'
decimal string
Trade amount
'te'
string
'fulfill_maker' - provided liquidity
'fulfill_taker' - took liquidity
'ts'
string
Trade side
'tc'
string
'normal' - Regular trade
'market_liquidation' - liquidated by market order
'backstop_liquidation' - liquidated by backstop liquidator
'settlement' - ADL/settlement
'f'
decimal string
Trade fee
'n'
decimal string
PnL
't'
number
Timestamp in milliseconds
'li'
number
Exchange-wide nonce. Used to reliably determine exchange event ordering. Sequential and not subject to clock drift.
Last updated