allActiveAssetCtx

Stream all asset contexts in a single batch message. Requires add-on permission.

New endpoint - this endpoint is not a part of original Hyperliquid API and is added by us for builder convenience.

⚠️ This is an add-on endpoint - access has to be purchased separately.

Instead of subscribing to activeAssetCtx per-coin (N separate subscriptions), allActiveAssetCtx sends all asset contexts in a single message per snapshot tick (~1s).

Subscribe

{
    "type": "subscribe",
    "subscription": {
        "type": "allActiveAssetCtx",
        "dex": "dex_name" // optional, filters by DEX prefix
    }
}

Unsubscribe

{
    "type": "unsubscribe",
    "subscription": {
        "type": "allActiveAssetCtx",
        "dex": "dex_name" // optional, must match subscribe msg
    }
}

Parameters

Parameter
Required
Description

dex

No

Filter by DEX. "main" returns native coins (BTC, ETH, etc). Other values (e.g. "hyna") return only coins with that prefix. Omit for all coins across all DEXes.

Message format

One message per snapshot tick containing all matching asset contexts:

The data field is a map from coin name to asset context. impactPxs contains the average execution price to trade impact notional (20k$ for BTC/ETH, 6k$ for others) on bid and ask.

When using the dex filter, only matching coins are included. For example, "dex": "main" would return only BTC and ETH from the above, while "dex": "hyna" would return only hyna:BTC.

Examples

Error messages:

Common errors

Last updated