Expand description
WebSocket-based price feed from Hyperliquid.
Maintains a single persistent WebSocket connection to the Hyperliquid public API,
subscribing to activeAssetCtx for configured coins. This replaces HTTP polling
of metaAndAssetCtxs which isnβt available on self-hosted nodes and hits rate limits.
StructsΒ§
- Active
Asset πCtxData - Active
Asset πCtxSub - Asset
CtxWs π - Hyperliquid
WsFeed - Shared WebSocket price feed for Hyperliquid oracle prices.
- Price
Entry π - A cached oracle price with its timestamp.
- WsMessage π
- WsSubscription π
ConstantsΒ§
- DEFAULT_
TESTNET_ WS_ URL - Default WebSocket URL for Hyperliquid testnet.
- DEFAULT_
WS_ URL - Default WebSocket URL for Hyperliquid mainnet.