Params
Positions Snapshots
Upon subscription, theaccount_positions websocket immediately returns a snapshot of all current positions, then begins streaming all changes made to an account’s positions in a best effort picture of current state.We recommend using
account_positions for initialization, and account_trades, to construct up-to-date positions state.
Stream
| Field | Type | Description |
|---|---|---|
’s’ | string | Symbol |
’d’ | string | Position side (bid, ask) |
‘a’ | decimal string | Position amount |
’p’ | decimal string | Average entry price |
’m’ | decimal string | Position margin |
’f’ | decimal string | Position funding fee |
’i’ | bool | Is position isolated? |
‘l’ | decimal string | Liquidation price in USD (null if not applicable) |
‘t’ | number | Timestamp in milliseconds |
’li’ | number | Exchange-wide nonce. Used to reliably determine exchange event ordering. Sequential and not subject to clock drift. |