HIP-4 is currently active on testnet with sample outcomes. Mainnet has 0 outcomes live as of April 2026. This guide works for both networks. The trading flow is identical.
How predictions work
Each prediction market has multiple outcomes. Each outcome has two sides: YES and NO. These are traded as spot tokens on HyperLiquid’s spot rails, not as perpetuals.- YES tokens are worth 0 if not
- NO tokens are worth 0 if it does
- Prices reflect the market’s probability estimate
- Settlement is automatic via L1 mark price
Step 1: Discover available markets
Step 2: Understand the asset ID system
Every prediction outcome token has a unique encoding:side_index is 0 for YES, 1 for NO.
The coin name uses the # prefix: #39890 means outcome 3989, YES side.
The numeric asset ID is 100,000,000 + encoding. So #39890 has asset ID 100,039,890.
Examples
Step 3: Get collateral
Prediction markets trade in USDH, not USDC. To get USDH:- Transfer USDC to your HyperLiquid spot balance
- Buy USDH at the spot pair
@180(USDH/USDC)
Step 4: Check the order book
%23 is the URL-encoded # character.
Step 5: Place an order
Use the exchange API to place orders on prediction tokens. The order format is the same as any HyperLiquid spot order.Step 6: Track in the stream
Subscribe to prediction market events in the WebSocket stream:consensus: "confirmed".
Step 7: Settlement
When the outcome is determined:- The YES token settles at 0 (or vice versa)
- Settlement is automatic via the L1 mark price
- Your position is closed at the settlement price
- PnL is credited to your spot balance in USDH
Convenience endpoints
hypernode provides enriched prediction market endpoints:Testnet
To experiment with prediction trading on testnet:- Get testnet USDC from the HyperLiquid testnet faucet
- Connect to the testnet stream:
wss://hyper.polynode.dev/ws-testnet?key=YOUR_KEY - Use the exchange API with
network=testnetparameter