{"uid":"cap_govUZM-rVHKOMBpjaENvb","slug":"finmath-annualized-basis-calculator-ffc4d915","name":"finmath Annualized Basis Calculator","description":"Deterministic finance and crypto math for AI agents: TradFi (NPV, IRR, XIRR, Black-Scholes + Greeks, bonds, VaR, Sharpe) and DeFi (impermanent loss, perp liquidation, funding, Uniswap v3, health factor, cost basis). Exact, model-free arithmetic that LLMs get wrong — priced per call in USDC.","url":"https://finmath.qzqh5rrbkz.workers.dev/v1/basis_annualized","method":"POST","headers":{},"bodySchema":{"type":"object","required":["spot","futures","days_to_expiry"],"properties":{"spot":{"type":"number","description":"spot"},"futures":{"type":"number","description":"futures"},"days_to_expiry":{"type":"number","description":"days_to_expiry"}}},"responseSchema":{"type":"object","required":["result","meta"],"properties":{"meta":{"type":"object"},"result":{}}},"example":{"request":{"spot":50000,"futures":50500,"days_to_expiry":30},"response":{"meta":{"tool":"basis_annualized","model":true,"disclaimer":"Deterministic calculation utility. Not financial, investment, or trading advice.","assumptions":["Actual/365 annualization","ignores carry costs beyond price difference"],"deterministic":true},"result":{"basis_pct":0.01,"annualized":0.12166666666666666}}},"exampleRequest":{"spot":50000,"futures":50500,"days_to_expiry":30},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_ZGnvw6D4SFvSHp5-Etcez","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 annualized basis (carry) between a spot price and a futures price given days to expiry, expressed as an annualized percentage rate.","exampleAgentPrompt":"BTC spot is $65,000 and the December futures are trading at $67,500 with 45 days until expiry — what's the annualized basis on that trade?","exampleUseCases":null,"resultDescription":"Returns a result object containing the annualized basis as a decimal or percentage (e.g. 0.156 meaning ~15.6% APR), plus a meta object with calculation details. This tells you the implied annual yield from the spot-futures spread.","failureModes":["Missing required fields (spot, futures, days_to_expiry) returns a 400-level error","days_to_expiry of zero causes division-by-zero and likely returns an error or infinity","Negative spot or futures prices may produce nonsensical results","Payment not included or insufficient USDC results in 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need exact, deterministic annualized basis arithmetic between a spot and futures price — especially for cash-and-carry analysis, arbitrage yield estimation, or cross-exchange basis comparison. Prefer this over LLM-generated math when precision matters or when you need auditable, model-free arithmetic for financial decision-making.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:49:06.123Z","isFirstParty":false}