position
positionUpdatesReact to individual position changes (opened, resized, closed).
{
"method": "subscribe",
"type": "positionUpdates",
"subscription": {
"type": "positionUpdates",
"user": "0x0000000000000000000000000000000000000000"
}
}"positionUpdates"User to follow. Use the account address, not an agent's.
Filter by an instrument's configured exchange_id. Same three-state semantics as the HTTP /info ExchangeScope: missing, null, or 0 -> Default (only instruments with no configured exchange_id); the string "all" (case-insensitive) -> All (no filter, every exchange); a positive integer n -> Exchange(n) (only that exchange_id).
Event that produced this update, e.g. `"Create"`.
"position"Close time, milliseconds. 0 if still open.
Position open time, milliseconds.
Decimal number encoded as a string to avoid floating-point precision loss.
Decimal number encoded as a string to avoid floating-point precision loss.
Margin mode: `"Cross"` or `"Isolated"`.
Position mode: `"OneWay"` or `"Hedge"`.
"Long" or "Short".
Decimal number encoded as a string to avoid floating-point precision loss.
Last update time, milliseconds.
Ethereum-style account or token address, 0x-prefixed, 40 hex characters.
Decimal number encoded as a string to avoid floating-point precision loss.
Decimal number encoded as a string to avoid floating-point precision loss.
Decimal number encoded as a string to avoid floating-point precision loss.
{
"channel": "position",
"user": "0x0000000000000000000000000000000000000000",
"instrumentId": 1,
"mode": "OneWay",
"marginMode": "Cross",
"positionSide": "Long",
"action": "Create",
"createTime": 1791895804242,
"updateTime": 1791895804242,
"closedTime": 0,
"size": "0.0010",
"leverage": 10,
"margin": "0.000000",
"entryPrice": "83227.1",
"markPrice": "83241.4"
}