Account Channel

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.

FieldTypeDescription
collateral_balancestringCollateral balance
usdc_balancestringUSDC balance
account_equitystringAccount equity
total_account_valuestringTotal account value
cross_margin_balancestringCross margin balance
free_cross_margin_balancestringCross margin balance not used by open positions or orders
withdrawable_usdcstringUSDC that can be withdrawn now
total_isolated_margin_usagestringMargin used by isolated positions
total_cross_maintenance_marginstringMaintenance margin required by cross positions
total_initial_marginstringInitial margin in use
total_notionalstringTotal position notional
total_unrealized_pnlstringUnrealized PnL across positions
realized_pnlstringRealized PnL
margin_ratiostringMargin ratio
margin_usagestringMargin usage
margin_healthstringMargin health
account_leveragestringAccount leverage
liquidation_riskstringLiquidation risk indicator
in_liquidationbooleanThe account is being liquidated

All numeric fields are decimal strings. The envelope has no market_id.