Account positions
Streams all changes made to an account's positions in any market. A position that has been fully closed will be streamed and return empty.
Refer to Websocket for establishing the websocket connection.
Params
{
"method": "subscribe",
"params": {
"source": "account_positions",
"account": "42trU9A5..."
}
}
Stream
{
"channel": "account_positions",
"data": [
{
"a": "3.1",
"d": "ask",
"f": "0",
"i": false,
"m": "0",
"p": "14.156000000000",
"s": "LINK",
"t": 1749051466633
},
{
"a": "1.3",
"d": "ask",
"f": "0",
"i": false,
"m": "0",
"p": "3.226700000000",
"s": "SUI",
"t": 1749051466633
},
// ... other positions
]
}
Field
Type
Description
's'
string
Symbol
'a'
decimal string
Position amount
'p'
decimal string
Average entry price
't'
number
Timestamp in milliseconds
'd'
string
Position side (bid, ask)
'm'
decimal string
Position margin
'f'
decimal string
Position funding rate
'i'
bool
Is position isolated?
Last updated