Everything you need to understand HIP-4 outcome markets and integrate with the Hyperliquid API.
FAQ
Developers
Base URL
https://api.hyperliquid-testnet.xyz/infoEndpoints
{"type": "outcomeMeta"}List all outcome markets{"type": "l2Book", "coin": "#<encoding>"}Order book for an outcome sideExample Requests
# Fetch all outcome markets
curl -X POST https://api.hyperliquid-testnet.xyz/info \
-H "Content-Type: application/json" \
-d '{"type": "outcomeMeta"}'
# Fetch YES order book for BTC binary option (outcome 1564)
curl -X POST https://api.hyperliquid-testnet.xyz/info \
-H "Content-Type: application/json" \
-d '{"type": "l2Book", "coin": "#15640"}'
# Fetch NO order book for the same outcome
curl -X POST https://api.hyperliquid-testnet.xyz/info \
-H "Content-Type: application/json" \
-d '{"type": "l2Book", "coin": "#15641"}'Links