Authentication Required: Yes
Account-level margin and balance summary for the authenticated account. Sends a snapshot on subscribe, then an update on every new block.
Subscribe
Authenticate first, then:
{ "method": "subscribe", "params": { "channel": "account" } }Message
{
"channel": "account",
"type": "update",
"data": {
"collateral_balance": "1000",
"account_equity": "1012.5",
"usdc_balance": "1000",
"total_unrealized_pnl": "12.5",
"in_liquidation": false
},
"worker_timestamp": "1795044600123456789"
}The example is abbreviated; every field below is always present.
| Field | Type | Description |
|---|---|---|
collateral_balance | string | Collateral balance |
usdc_balance | string | USDC balance |
account_equity | string | Account equity |
total_account_value | string | Total account value |
cross_margin_balance | string | Cross margin balance |
free_cross_margin_balance | string | Cross margin balance not used by open positions or orders |
withdrawable_usdc | string | USDC that can be withdrawn now |
total_isolated_margin_usage | string | Margin used by isolated positions |
total_cross_maintenance_margin | string | Maintenance margin required by cross positions |
total_initial_margin | string | Initial margin in use |
total_notional | string | Total position notional |
total_unrealized_pnl | string | Unrealized PnL across positions |
realized_pnl | string | Realized PnL |
margin_ratio | string | Margin ratio |
margin_usage | string | Margin usage |
margin_health | string | Margin health |
account_leverage | string | Account leverage |
liquidation_risk | string | Liquidation risk indicator |
in_liquidation | boolean | The account is being liquidated |
All numeric fields are decimal strings. The envelope has no market_id.