Messages
{
"topic": "account_positions:0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"positions": [
{
"market": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
"user": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"size": 2.5,
"user_leverage": 10,
"entry_price": 49800,
"is_isolated": false,
"is_deleted": false,
"unrealized_funding": -25.5,
"estimated_liquidation_price": 45000,
"transaction_version": 12345681,
"tp_order_id": "tp_001",
"tp_trigger_price": 52000,
"tp_limit_price": 51900,
"sl_order_id": "sl_001",
"sl_trigger_price": 48000,
"sl_limit_price": null,
"has_fixed_sized_tpsls": false
}
]
}Websockets
Account positions
Account’s open positions with PnL and liquidation prices
WSS
account_positions:
{accountAddr}
Messages
{
"topic": "account_positions:0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"positions": [
{
"market": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
"user": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"size": 2.5,
"user_leverage": 10,
"entry_price": 49800,
"is_isolated": false,
"is_deleted": false,
"unrealized_funding": -25.5,
"estimated_liquidation_price": 45000,
"transaction_version": 12345681,
"tp_order_id": "tp_001",
"tp_trigger_price": 52000,
"tp_limit_price": 51900,
"sl_order_id": "sl_001",
"sl_trigger_price": 48000,
"sl_limit_price": null,
"has_fixed_sized_tpsls": false
}
]
}accountAddr
type:string
required
Account address (Aptos address format, e.g. 0x123...)
AccountPositionsMessage
type:object
Account's open positions with PnL and liquidation prices
⌘I

