{"uid":"cap_f9HylhHHmxxj4XUTnHvgn","slug":"delx-commerce-basis-annualize-61a52d0e","name":"Delx Commerce — Basis Annualize","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-annualize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"days":{"type":"integer","description":"Days to delivery or horizon"},"spot":{"type":"number","description":"Underlying spot price (>0)"},"future":{"type":"number","description":"Futures/mark price"}}},"responseSchema":{"type":"json","example":{"basis":0.01,"schema":"delx/util-basis-annualize/v1","basis_apr":0.1216666666666667}},"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_bzyguQ50gpou_MvteFgHe","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":"Calculates the annualized basis (APR) between a spot price and a futures/mark price over a given number of days","exampleAgentPrompt":"BTC spot is $65,000 and the June futures are trading at $66,200 with 45 days to expiry — what's the annualized basis APR on that trade?","exampleUseCases":[{"title":"Cash-and-carry yield comparison","prompt":"ETH spot is $3,400 and the monthly futures contract is at $3,460 with 28 days left — can you annualize that basis so I can see the implied APR and decide if the carry trade is worth it?"},{"title":"Funding rate arbitrage screening","prompt":"I'm looking at a BTC perpetual basis trade: spot is $64,800, the mark price is $65,100, and I'm modeling a 7-day holding period — what's the annualized basis return on that?"},{"title":"Cross-exchange futures comparison","prompt":"On exchange A, SOL spot is $140 and the 60-day futures are at $143.50. Can you annualize that basis into an APR so I can compare it against the 30-day contract on exchange B where spot is $140 and futures are $141.80 with 30 days to expiry?"}],"resultDescription":"Returns a JSON object with the raw basis ratio (e.g. 0.01 meaning 1% premium) and the annualized basis APR (basis_apr, e.g. 0.1217 meaning ~12.2% annualized yield), along with a schema identifier string.","failureModes":["Missing required fields (days, spot, future) returns a 400 error","Spot price of zero or negative value is invalid and will be rejected","Negative days value or zero days causes division error","Payment not included or insufficient USDC results in 402 Payment Required response","Extremely large or small floating point values may produce unexpected precision in basis_apr"],"whenToPreferThis":"Use this endpoint when you need a quick, cheap, verifiable computation of annualized basis from raw futures/spot inputs — especially in agent workflows where you want pay-per-result pricing with no API key or subscription required. Prefer this over implementing the formula yourself when auditability or on-chain payment receipts matter, or when running inside an automated trading or monitoring agent that compares basis across multiple instruments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:40:23.982Z","isFirstParty":false,"canonicalSlug":"delx-commerce-basis-annualize-61a52d0e"}