{"uid":"cap_tNPhWDhkBSL3LpLHPCVsw","slug":"hyperliquid-perpetuals-funding-rate-open-interest-api-x402-b82f2672","name":"Hyperliquid Perpetuals Funding Rate & Open Interest API (x402)","description":"Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.","url":"https://kr-x402-mvp.kgy5612.workers.dev/v1/crypto/funding?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"coin":{"enum":["BTC","ETH","SOL"],"type":"string","examples":["BTC","ETH","SOL"],"description":"Perp coin (default BTC)"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"coins":{"BTC":{"mark_px":80860,"oracle_px":80870,"open_interest":30000,"funding_hourly":0.0000125,"funding_apr_pct":10.95,"open_interest_usd":2426000000}},"venue":"hyperliquid","sources":["https://api.hyperliquid.xyz/info"],"updated_at":"2026-10-28T11:00:00Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KlL_h-9THsiCuSMH93QNg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns real-time perpetual futures funding rate, mark/oracle price, and open interest for BTC, ETH, or SOL from Hyperliquid via pay-per-call x402 micropayment","exampleAgentPrompt":"What's the current hourly funding rate and annualized APR for BTC perpetuals on Hyperliquid, and how much open interest is there right now?","exampleUseCases":[{"title":"Funding rate arbitrage signal detection","prompt":"Check the current funding rate APR for ETH perpetuals on Hyperliquid — I want to know if it's above 20% annualized so I can consider a cash-and-carry trade."},{"title":"Long/short sentiment gauge via open interest","prompt":"What's the total open interest in USD for BTC perps on Hyperliquid right now? I'm trying to gauge how crowded the long side is before entering a position."},{"title":"Automated DeFi agent funding monitoring","prompt":"Pull the hourly funding rate and mark price for SOL perpetuals on Hyperliquid so my trading bot can decide whether to hold or close its long position."}],"resultDescription":"A JSON object containing for the requested coin: mark price, oracle price, open interest (raw and USD-denominated), hourly funding rate, annualized funding APR in percent, the venue name ('hyperliquid'), upstream data sources, and an updated_at ISO timestamp.","failureModes":["Invalid coin symbol not in [BTC, ETH, SOL] returns an error or defaults to BTC","x402 payment failure if USDC balance on Base is insufficient results in 402 response with no data","Hyperliquid API upstream outage may cause stale or missing data","Network timeout on the Cloudflare Worker edge node"],"whenToPreferThis":"Choose this endpoint when you need real-time Hyperliquid-specific perpetual futures data (funding rate, open interest, mark/oracle prices) without API key setup, paying only $0.005 USDC per call via x402. Prefer it over generic market data APIs when your agent needs Hyperliquid-native funding rates for carry-trade calculations, liquidation monitoring, or on-chain strategy automation on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:36.969Z","isFirstParty":false,"canonicalSlug":"hyperliquid-perpetuals-funding-rate-open-interest-api-x402-b82f2672"}