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": [
{
"I": null,
"a": "7.8",
"c": "C1obSQwry...",
"f": "0.00501618",
"i": 484871,
"n": "-0.00501618",
"o": "3.215567",
"p": "3.2155",
"s": "SUI",
"t": 1749053764375,
"tc": "normal",
"te": "fulfill_maker",
"ts": "open_long",
"u": "42trU9A5..."
},
// ... other trades
]
}
Field
Type
Description
'I'
Full UUID string
Client order ID
'i'
integer
Order ID
's'
string
Symbol
'ts'
string
Trade side
'p'
decimal string
Price
'a'
decimal string
Trade amount
'u'
sting
Account address
't'
number
Timestamp in milliseconds
'c'
string
Counter party address
'o'
decimal string
Entry price
'te'
string
Trade event
'tc'
string
Trade cause
'n'
decimal string
PnL
'f'
decimal string
Trade fee
Last updated