Hyperliquid-Grade API & Streamable HTTP MCP
Quote, execute, stream, and attribute long-tail perpetuals and 7-day European options over a single
/v1/* REST surface, POST /mcp JSON-RPC server, and real-time SSE feeds.
Idempotency-Key replay with X-Idempotency-Replay: true
X-RateLimit-Remaining & 429 Retry-After
Live Interactive Playground
Execute live requests against this node's REST /v1/* and Streamable HTTP POST /mcp endpoints right from the browser.
// Click "Send" or pick an endpoint preset to inspect live JSON output.
Streamable HTTP transport at /mcp (13 tools)
Auto-generates UUID Idempotency-Key, supports Builder Codes & SSE streams
Real-Time SSE Streams
Diff-friendly JSON frames (snapshot, diff, heartbeat) over standard text/event-stream.
snapshot, diff, and heartbeat events.REST v1, Builder Codes & MCP Reference
All endpoints return {"ok": false, "error": {"code", "message", "details"}} on errors.
| Method | Endpoint | Scope | Description |
|---|---|---|---|
| GET | /v1/meta | public | Exchange caps, equity, carry sign & TWAP30 settlement model |
| GET | /v1/omens | public | Live ranked shortable markets (sort, chain, limit) |
| GET | /v1/markets/search | public | Search markets by ticker, name, or contract address |
| GET | /v1/markets/{chain}/{address} | public | Spot, TWAP30, carry rates, vault caps & option availability |
| GET | /v1/markets/{chain}/{address}/bars | public | OHLCV price bars & TWAP30 (1h, 4h, 24h) |
| GET | /v1/leaderboard | public | Live trader P&L, volume, win rate, and rankings |
| POST | /v1/quotes/perp | quote | Lock 60s perp quote with optional builder attribution |
| POST | /v1/quotes/option | quote | Lock 60s 7-day European call/put option quote |
| POST | /v1/orders | trade | Fill quoted order (Idempotency-Key + builder attribution) |
| POST | /v1/positions/{id}/tpsl | trade | Set or clear TWAP30-evaluated take-profit / stop-loss |
| POST | /v1/positions/{id}/close | trade | Close open perp at covered 30-min TWAP spot |
| GET | /v1/positions | read | Open & settled perps/options with mark, P&L & carry |
| GET | /v1/account | read | Account balances, margin locked, realized/unrealized P&L |
| POST | /v1/keys | admin | Mint scoped API key with builder_id & builder_fee_bps (≤ 50) |
| GET | /v1/builders/{builder_id}/stats | public | Builder volume, quote/order/fill counts & accrued USD fees |
| GET | /v1/stream/positions | stream | SSE stream of live position & account diffs + heartbeats |
| GET | /v1/stream/omens | public | SSE stream of live ranked short board diffs + heartbeats |
| GET | /v1/stream/book | stream | SSE stream of full house & position book diffs + heartbeats |
Hyperliquid-Style Builder Attribution
Mint a scoped API key via POST /v1/keys with a builder_id and
builder_fee_bps (0–50 bps, max 0.50%). Every quote,
order, and fill executed with that key automatically records attribution and computes
builder_fee_usd = notional_usd × builder_fee_bps / 10,000, queryable anytime at
GET /v1/builders/{builder_id}/stats.
search_markets
get_market
get_market_bars
get_meta
list_short_omens
get_leaderboard
quote_perp
quote_option
place_order
set_tpsl
close_position
get_positions
get_account