{"uid":"cap_-NaNFzpTkcv6HFsn0UPre","slug":"delx-commerce-perpetual-futures-premium-calculator-717b481a","name":"Delx Commerce — Perpetual Futures Premium Calculator","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/perp-premium?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"mark":{"type":"number","description":"Perp mark price"},"index":{"type":"number","description":"Index price"}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-perp-premium/v1","premium_bps":50}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-jx939vJmnNXnbnj3xwAz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the funding rate premium in basis points between a perpetual futures mark price and its underlying index price","exampleAgentPrompt":"Calculate the perpetual futures premium in basis points — the mark price is 65200 and the index price is 65050.","exampleUseCases":[{"title":"Live funding rate monitoring bot","prompt":"The BTC perp mark price is 29450 and the index is 29380 — what's the premium in basis points so I can decide whether to open a short funding arb position?"},{"title":"Pre-trade basis check for DeFi trader","prompt":"Before I enter this ETH perpetual long, tell me the current premium in bps: mark is 1845.50 and index is 1842.00."},{"title":"Automated risk dashboard enrichment","prompt":"I'm building a dashboard — given a SOL perp mark price of 142.30 and an index of 141.75, calculate the premium in basis points so I can flag if it's outside my 30 bps threshold."}],"resultDescription":"Returns a JSON object with a schema identifier ('delx/util-perp-premium/v1') and the computed premium expressed in basis points (e.g. premium_bps: 50), representing how much the mark price deviates from the index price in hundredths of a percent.","failureModes":["Missing mark or index fields returns a validation error","Non-numeric values for mark or index cause a 400-level error","Payment failure via x402 protocol results in a 402 response requiring USDC payment on Base or Solana","If mark equals index, premium_bps will be 0 (valid but trivial result)"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call computation of perpetual futures basis without running the math yourself — ideal for agents or bots that need a trustless, verifiable on-chain-paid result with no subscription or API key. Prefer this over manual calculation when you need a standardized schema output for downstream pipeline consumption.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:55.928Z","isFirstParty":false,"canonicalSlug":"delx-commerce-perpetual-futures-premium-calculator-717b481a"}