HFun Feed WebSocket API
Real-time order book data from Hyperliquid node infrastructure.
Overview
This server provides real-time order book data from Hyperliquid node infrastructure. It implements endpoints compatible with Hyperliquid's official API, with extensions.
AlphaHype Seats
Access to the API requires an AlphaHype seat. The seat system is an on-chain smart contract on the Hyper EVM with a limited number of seats available (currently 10).
How It Works
- Purchase a seat by depositing aHYPE tokens as collateral
- Whitelist your IP via the
/ip/add#post-ipadd) endpoint - Connect - authentication is automatic once your IP is whitelisted
Pricing Model
Seat fees are based on utilization - the more seats occupied, the higher the fee rate:
- Fee rate scales linearly from a minimum to maximum rate
- Fees accrue per second while you hold a seat
- Higher utilization = higher fees for all seat holders
Collateral & Health
- Your collateral must always cover your accrued fees (debt)
- If your debt exceeds your collateral, your position becomes unhealthy
- Unhealthy seats are automatically disconnected from the API
- Unhealthy positions can be liquidated ("kicked"), forfeiting the collateral
- Add collateral or repay fees to maintain a healthy position
Management
Seats can be purchased and managed on alphaticks.
Available Subscriptions
| Type | Description |
|---|---|
l1Book | Top of book (best bid/ask) |
l2Book | Aggregated price levels (periodic snapshots) |
l3Book | Order-level data, lightweight fields |
l4Book | Order-level data, full details (triggers, TIF, etc.) |
trades | Real-time trade stream |
candle | Real-time candlestick data |
allMids | Mid prices for all trading pairs |
impactPrice | Impact price calculations |
orderUpdates | Real-time order status updates |
userFills | Real-time fill notifications |
Available Queries
| Type | Description |
|---|---|
l3Orders | Query L3 orders by price range |
l4Orders | Query L4 orders by price range |
