{"uid":"cap_zh1AH7V7RG1CSfekvLVNp","slug":"perpetual-futures-funding-rate-arbitrage-api-87f269a3","name":"Perpetual Futures Funding Rate & Arbitrage API","description":"Perpetual futures funding rates, next funding time and open interest for a coin on Binance, Bybit, OKX and Hyperliquid in one call, normalised to 8h, with the spread and the funding-arbitrage direction.","url":"https://api.agent-data.workers.dev/api/v1/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","required":["symbol"],"properties":{"symbol":{"type":"string","description":"Coin ticker, e.g. BTC"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"symbol":"BTC","arbitrage":{"long_on":"bybit","short_on":"binance"},"exchanges":{"bybit":{"funding_rate_pct":0.0072},"binance":{"funding_rate_pct":0.01,"open_interest_usd":8100000000},"hyperliquid":{"rate_8h_pct":0.01,"interval_hours":1,"funding_rate_pct":0.00125}},"max_spread_pct":0.0028}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4sVa1xgRgHFV65mMAwsZD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches normalized 8h perpetual futures funding rates, open interest, next funding time, and cross-exchange arbitrage direction for a coin across Binance, Bybit, OKX, and Hyperliquid in a single call.","exampleAgentPrompt":"What are the current perpetual futures funding rates for BTC across Binance, Bybit, OKX, and Hyperliquid, and which exchange pair gives the best funding arbitrage opportunity right now?","exampleUseCases":[{"title":"Funding arbitrage trade setup","prompt":"I want to do a funding rate arbitrage on ETH perps — can you check Binance, Bybit, OKX and Hyperliquid and tell me where I should go long and where I should go short to capture the spread?"},{"title":"Cheapest exchange for holding longs","prompt":"I'm planning to hold a long SOL perpetual position for a few days — which exchange right now has the lowest normalized 8h funding rate so I pay the least in funding?"},{"title":"Market sentiment gauge via funding","prompt":"Can you pull the BTC funding rates across all major perp exchanges and tell me what the spread looks like — trying to get a sense of how bullish or bearish the market is feeling right now?"}],"resultDescription":"Returns a JSON object with the coin symbol, per-exchange funding rate data (normalized to 8h percentage), open interest in USD where available, the maximum spread between exchanges, and the recommended arbitrage direction (which exchange to go long on and which to go short on).","failureModes":["Invalid or unsupported coin ticker returns an error or empty exchange data","Exchange API downtime may result in missing data for one or more exchanges","Very new or illiquid coins may not have perpetual futures listed on all exchanges","Rate limiting or payment failure (402) if USDC payment is not properly attached"],"whenToPreferThis":"Use this endpoint when you need a single normalized view of perpetual futures funding rates across Binance, Bybit, OKX, and Hyperliquid simultaneously, especially when evaluating funding arbitrage opportunities or comparing the cost of holding leveraged positions. It saves the overhead of querying four separate exchange APIs and normalizing intervals (e.g., Hyperliquid's 1h rate is converted to 8h equivalent).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-14T18:36:26.643Z","isFirstParty":false,"canonicalSlug":"perpetual-futures-funding-rate-arbitrage-api-87f269a3"}