{"uid":"cap_W_ImMcy0xKVkldQ1tEV0T","slug":"perpetual-funding-and-basis-23831435","name":"Perpetual Funding and Basis","description":"Perpetual futures funding rate, basis, open interest and mark versus index price from Bybit and OKX in one call. No API key, no signup.","url":"https://llmrt-companion.manhliemcn4euwlu.workers.dev/perp-402?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["order_id"],"properties":{"symbol":{"type":"string"},"order_id":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.000479","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.000486/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.000486","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.000486","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WN43nnfsokjl8tYkT6Jhq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.000486","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns perpetual futures funding rate, basis, open interest, and mark vs index price from Bybit and OKX in a single call.","exampleAgentPrompt":"What's the current funding rate, open interest, and mark vs index price for BTCUSDT perpetual futures — pull it from both Bybit and OKX in one shot.","exampleUseCases":[{"title":"Funding rate arbitrage monitoring","prompt":"Check the current funding rate and basis for ETHUSDT perp on Bybit and OKX — I want to see if there's a spread worth arbitraging right now."},{"title":"Perp premium or discount check","prompt":"Is SOLUSDT perpetual trading at a premium or discount right now? Give me the mark price versus index price from both Bybit and OKX."},{"title":"Open interest spike detection","prompt":"What's the current open interest on BTCUSDT perp across Bybit and OKX? I'm trying to spot if there's been a big position build-up today."}],"resultDescription":"A JSON object containing perpetual futures data for the requested symbol, including funding rate, basis, open interest, mark price, and index price, aggregated from both Bybit and OKX in a single response.","failureModes":["Invalid or unsupported symbol returns an error or empty result","Upstream exchange API (Bybit/OKX) downtime may cause partial or failed response","Missing required query parameter (symbol) may return a schema validation error","Payment failure via x402 protocol blocks the request before execution"],"whenToPreferThis":"Choose this endpoint when you need multi-exchange perpetual futures metrics (funding rate, basis, open interest, mark/index price) without managing separate API keys for Bybit and OKX. Ideal for arbitrage monitoring, basis trading signals, or risk dashboards that need cross-exchange data in a single low-latency call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-15T06:36:31.949Z","isFirstParty":false,"canonicalSlug":"perpetual-funding-and-basis-23831435"}