private/get-positions
POSTReturns the user's position./private/get-positions
Request
Body
required
Request id (echoed in response)
Must be "private/get-positions"
Your API key (only required for private REST)
HMAC-SHA256 signature in hex (only required for private REST)
Current timestamp in milliseconds, e.g. "1771761038000".
params objectrequired
E.g. BTCUSD-PERP. Omit for 'all'.
Schema
- Array [
- ]
Echoed request id
Method invoked
0 = success; non-zero indicates error (reason code).
result object
data object[]
Account ID.
E.g. BTCUSD-PERP.
E.g. PERPETUAL_SWAP.
Position quantity.
Position cost or value in USD.
Profit and loss for the open position.
Open position cost.
Profit and loss in the current trading session.
Last time the risk engine recalculated the owning margin unit; may look stale between trades.
Session unrealized PnL.
Position initial margin.
Derived as pos_initial_margin × MM ratio; not reported directly by the risk engine.
Market value.
Mark price.
Target leverage.
Liquidation price.
Effective leverage; present in user.account_risk and some WS responses. Optional.
Response message. Contains additional reason when code !== 0.
Present when code !== 0.