activeAssetCtx

Real-time stream of oracle-, mid- and mark prices for an asset. Sends updates every second.

This subscription mirrors Hyperliquid activeAssetCtx exactly.

Subscribe

{
    "method": "subscribe",
    "subscription": {
        "type": "activeAssetCtx",
        "coin": "<coin_symbol>"
    }
}

Unsubscribe

{
    "method": "unsubscribe",
    "subscription": {
        "type": "activeAssetCtx",
        "coin": "<coin_symbol>"
    }
}

format

Note: activeAssetCtx uses "channel" instead of "type" as the message identifier for Hyperliquid compatibility. impactPxs contains the average execution price to trade impact notional (20k$ for BTC/ETH, 6k$ for others) on bid and ask.

Example:

Error messages:

Common errors

Last updated