Grab your API key from the
Uniblock dashboard.
1. Connect
Open a WebSocket to Uniblock’s endpoint and authenticate with theX-API-KEY header (recommended) or an apiKey query parameter.
2. Subscribe
Send asubscribe message once the connection is open:
Migrate from the public WebSocket
Switching from Hyperliquid’s public HyperCore WebSocket is a one-line change — the subscribe/unsubscribe message format is the same.Uniblock adds GoldRush-native channels the public feed doesn’t have —
l2BookDiff, l4Book, and liquidationFills. Once migrated you can drop any
logic that worked around the 1000-subscription cap.3. Keep the connection healthy
- Keep-alive: send a ping every 30–60 seconds to avoid idle timeouts.
- Reconnect with backoff: on disconnect, re-open and re-send every subscription using exponential backoff. On reconnect, discard local order book state and re-seed from the fresh snapshots rather than replaying missed updates.
- Scope subscriptions: subscribe per
coinrather than the wildcard stream when you only need a few assets — wildcard is billed at a much higher rate.