Get All Positions Info
Get All Positions Info
Returns the authenticated account's position rows together with account-level margin and collateral metrics.
Endpoint
GET /v1/positions
Mainnet: GET https://api.orderly.org/v1/positions Testnet: GET https://testnet-api.orderly.org/v1/positions
Rate limit: 30 requests per 10 seconds per user.
Headers
orderly-timestamp(string, required): Signed request timestamp in milliseconds.orderly-account-id(string, required): Authenticated account ID.orderly-key(string, required): Public key used to sign the request.orderly-signature(string, required): Signature of the request payload.
Parameters
No query or path parameters.
Response
HTTP 200 returns success, data, and server timestamp. The account-level data includes required numeric values: current_margin_ratio_with_orders, free_collateral, initial_margin_ratio, initial_margin_ratio_with_orders, maintenance_margin_ratio, maintenance_margin_ratio_with_orders, margin_ratio, open_margin_ratio, total_collateral_value, and total_pnl_24_h. account_value is also returned.
data.rows is an array of positions. Each row may include numeric IMR_withdraw_orders, MMR_with_orders, average_open_price, cost_position, est_liq_price, fee_24_h, imr, last_sum_unitary_funding, mark_price, mmr, pending_long_qty, pending_short_qty, pnl_24_h, position_qty, settle_price, seq, timestamp (position entry creation time), updated_time, unsettled_pnl, margin, and accrued_funding_fee; symbol and margin_mode are strings; leverage is an integer.
Last updated