Docs / SDK, API and MCP
SDK, API and MCP
Read the vault and the books it quotes from any script or agent.
REST
GET /api/v1/vault
curl -s https://<site>/api/v1/vault
{
"vault": { "status": "next", "chain": 99901, "address": null },
"share_value": null,
"quoted_markets": [ { "outcome": 55398, "title": "BTC above 59,877", "yes_coin": "#553980", "asset": 100553980 } ],
"source": "api.hyperliquid.xyz/info outcomeMeta + allMids"
}MCP
The site serves a JSON-RPC MCP endpoint at /api/mcp with two tools: vault_nav and quoted_markets.
tools/call
curl -s https://<site>/api/mcp -H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"quoted_markets","arguments":{}}}'Reading HIP-4 yourself
info API
curl -s https://api.hyperliquid.xyz/info -H 'content-type: application/json' \
-d '{"type":"outcomeMeta"}'
curl -s https://api.hyperliquid.xyz/info -H 'content-type: application/json' \
-d '{"type":"l2Book","coin":"#553980"}'Everything on the book page comes from these two calls and allMids.