{"uid":"cap_toTkOw3mvVVw2bmbnGN_4","slug":"basis-percent-calculator-a93524b9","name":"Basis Percent Calculator","description":"Basis percent = (future − spot) / spot for carry checks. Call when cash-and-carry or premium/discount scans from caller prices. Returns basis percent as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.","url":"https://api.delx.ai/api/v1/x402/basis-pct","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_ON9dW9a1L-1h3kUpqnyz4","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 between a futures price and spot price as (future − spot) / spot, enabling carry and premium/discount analysis.","exampleAgentPrompt":"What's the basis percent if spot is 65000 and the futures price is 65800? I need to check whether the futures are at a premium and by how much.","exampleUseCases":[{"title":"Cash-and-carry arbitrage check","prompt":"The BTC spot price is 65000 and the quarterly futures are trading at 66200 — what's the basis percent so I can decide if there's a cash-and-carry arb worth running?"},{"title":"Futures discount scan for hedgers","prompt":"Spot is at 3200 and the near-month futures are at 3150 — calculate the basis percent so I know how deeply discounted the futures are relative to spot."},{"title":"Carry trade premium monitoring","prompt":"I'm tracking a carry trade — spot is 1850 and the perpetual futures are at 1875. Give me the basis percent so I can monitor the premium over time."}],"resultDescription":"A deterministic JSON object containing the computed basis percentage value as (future − spot) / spot, expressed as a decimal or percentage. No live market data is fetched — the calculation is performed locally from the caller-supplied prices.","failureModes":["Missing or invalid 'spot' or 'future' fields returns an error","Spot value of zero causes a division-by-zero error","Non-numeric inputs may return a validation error","Payment failure via x402 will prevent response delivery"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, serverless computation of basis percent from caller-supplied spot and futures prices — especially in cash-and-carry arbitrage scans, premium/discount monitoring workflows, or any pipeline where you already have the prices and just need the ratio computed reliably without external data dependencies or API keys.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:03:31.073Z","isFirstParty":false}