Skip to main content
WSS
Connect to wss://mainnet-ws1.bulk.trade, then send the subscription below. All channels share the same socket; the page name is not a separate endpoint path. The playground sends read-only subscription messages. Subscribe to the complete risk-surface set for a symbol, including the live regime, maximum-leverage curve, per-regime maintenance-margin grids, and asset correlations.
Initial Response: Latest cached risk metrics (if available) Updates: Event-driven (only when asset risk changes) Risk Metrics Fields: Buy/sell point fields (each cell in the grid): Surface indexing: Select the desired surfaces[] regime, find the notional and leverage brackets, then use buy[notional_idx][leverage_idx] or sell[notional_idx][leverage_idx]. Interpolate between surrounding grid points if needed.

Connection and Limits

See connection management for reconnect behavior and public rate limits for connection budgets.
Risk surfaces subscribe
type:object

Schema defaults on this request are playground example prefills, not omitted-field defaults accepted by the network endpoint.

Risk surfaces risk
type:object

Network-published risk

Risk surfaces subscribed
type:object
Risk surfaces unsubscribed
type:object