To monitor a Hyperliquid HIP-3 builder-deployed perpetual market, the tutorial published on November 19, 2026, starts by discovering and validating the target market through perpDexs and metaAndAssetCtxs. It then subscribes to full level-two order-book snapshots through StreamL2Book and calculates the bid–ask spread and the deviation between the mark and oracle prices.
The example reports one of six states: WAITING, OK, ALERT, STALE, DISCONNECTED or UNKNOWN. It describes context polling every 10 seconds, 5-second and 25-second expiry checks, and exponential-backoff reconnection capped at 30 seconds. An authentication failure stops the monitor rather than triggering another reconnect attempt.
This is a monitoring example, not a trading system. An OK state does not establish that the underlying oracle source is current or that execution is safe. The tutorial also cautions that the receiving system’s clock must be synchronized and that gRPC streams incur charges.