{"uid":"cap_qlUBBP9o0dm0QmVtGfuP-","slug":"delx-commerce-basis-points-calculator-c97d65ac","name":"Delx Commerce — Basis Points 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/basis-pct?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"spot":{"type":"integer","description":"Input field: spot."},"future":{"type":"number","description":"Input field: future."}}},"responseSchema":{"type":"json","example":{"spot":100,"future":101.5,"schema":"delx/util-basis-pct/v1","basis_pct":1.5}},"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_sevthSNPg8IaABxtpZW64","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 basis percentage (spread) between a spot price and a futures price for a given asset","exampleAgentPrompt":"What's the basis percentage between a spot price of 100 and a futures price of 101.5?","exampleUseCases":[{"title":"Crypto futures basis monitoring","prompt":"I'm tracking BTC basis — spot is currently 65200 and the quarterly futures are trading at 66150. What's the basis percentage?"},{"title":"Arbitrage opportunity sizing","prompt":"I want to know the basis between ETH spot at 3400 and the monthly futures contract at 3358 — give me the exact basis percentage so I can size my cash-and-carry trade."},{"title":"Contango versus backwardation check","prompt":"Gold spot is 2300 and the 3-month futures are at 2324. Can you calculate the basis percentage to tell me how much contango we're in?"}],"resultDescription":"Returns a JSON object containing the original spot and futures prices echoed back, the schema identifier (delx/util-basis-pct/v1), and the computed basis_pct as a floating-point number representing the percentage difference of the futures price relative to the spot price. For example, spot=100, future=101.5 yields basis_pct=1.5.","failureModes":["Missing required fields (spot or future) returns a 4xx error","Spot value of zero causes division-by-zero or undefined behavior","Non-numeric input types cause schema validation failures","Payment failure over x402 protocol blocks the request before computation","Negative prices may produce unexpected or undefined results"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, deterministic computation of basis percentage between two price levels — especially in an agentic pipeline that already uses USDC on-chain micropayments via x402. Ideal when you want verifiable, pay-per-result pricing with no subscription or signup overhead. Prefer over building your own formula when auditability and on-chain payment receipts matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:06.180Z","isFirstParty":false,"canonicalSlug":"delx-commerce-basis-points-calculator-f76d7edd"}