Account snapshot with collateral, open positions, margin metrics, and PnL. Response shape depends on the parameters:Documentation Index
Fetch the complete documentation index at: https://staging-docs.orderly.network/llms.txt
Use this file to discover all available pages before exploring further.
address+account_id(with or withoutbroker_id) → flat object, one accountaddress(±broker_id) → object containingaccounts[]with one entry per matching account
5
Request
| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
address | string | Yes | — | Wallet address |
broker_id | string | No | — | Optional broker scope |
account_id | string | No | — | If supplied → flat response; omitted → accounts[] array |
Account fields
| Field | Type | Notes |
|---|---|---|
account_type | string | "main" (main account), "sub" (sub-account), or "sp" (vault strategy provider) |
account_value | string | null | Mark-to-market account value: total_collateral_value + Σ unrealized_pnl across positions. null if position-calc unreachable |
total_collateral_value | string | Σ_token((holding + iso_margin_total + frozen) × price); non-USDC priced via spot index price |
free_collateral | string | null | ≈ collateral × (1 − margin_ratio) |
margin_ratio | string | null | From position-calc |
initial_margin_ratio | string | null | Σ(notional_i × IMR_i) / Σ notional_i over CROSS positions only |
maintenance_margin_ratio | string | null | Minimum margin ratio required to avoid liquidation |
total_unrealized_pnl, total_unsettled_pnl | string | null | Both from position-calc |
total_pnl_24_h | string | null | Sum across positions |
Position fields
| Field | Type | Notes | ||
|---|---|---|---|---|
side | string | "LONG" if position_qty > 0, "SHORT" if < 0 | ||
position_qty | string | Signed | ||
notional | string | null | ` | qty | × mark_price` |
average_open_price | string | null | `cost_position / | holding | ` |
mark_price | string | null | Latest mark price for the symbol | ||
imr, mmr | string | null | Position-level (from position-calc or symbol metadata) | ||
est_liq_price | string | null | Estimated liquidation price | ||
leverage | int | null | Effective leverage | ||
margin_mode | string | null | "CROSS" or "ISOLATED" | ||
opened_at, updated_at | int64 | null | ms epoch; cached 10s |
Notes
- Throws
ADDRESS_NOT_FOUND(404) if no accounts match - If the position-calc service is unavailable, all margin / PnL-derived fields are
nullwhile other fields continue to be served positions[]only contains open positions (holding ≠ 0)