{"uid":"cap_9x2lfKOkWIbAlMYMIYFkJ","slug":"finmath-funding-apr-calculator-8f8dcbc1","name":"finmath Funding APR 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/funding_apr","method":"POST","headers":{},"bodySchema":{"type":"object","required":["funding_rate"],"properties":{"funding_rate":{"type":"number","description":"funding_rate"},"intervals_per_day":{"type":"number","description":"intervals_per_day"}}},"responseSchema":{"type":"object","required":["result","meta"],"properties":{"meta":{"type":"object"},"result":{}}},"example":{"request":{"funding_rate":0.0001,"intervals_per_day":8},"response":{"meta":{"tool":"funding_apr","disclaimer":"Deterministic calculation utility. Not financial, investment, or trading advice.","deterministic":true},"result":{"apr":0.29200000000000004,"daily_rate":0.0008,"apy_compounded":0.3389467028980555}}},"exampleRequest":{"funding_rate":0.0001,"intervals_per_day":8},"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_a80jDI0lmuGWp6vv7cfsf","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":"Converts a perpetual futures funding rate into an annualized percentage rate (APR), accounting for funding interval frequency","exampleAgentPrompt":"What's the annualized APR for a perp with a funding rate of 0.01% paid 3 times a day?","exampleUseCases":null,"resultDescription":"Returns a computed annualized funding APR value derived from the raw funding rate and funding interval frequency, along with metadata about the calculation.","failureModes":["Missing required funding_rate field returns validation error","Invalid non-numeric values for funding_rate or intervals_per_day cause rejection","intervals_per_day of zero may cause division error or undefined result","Payment failure or insufficient USDC balance returns 402 payment required"],"whenToPreferThis":"Use this endpoint when you need exact, deterministic arithmetic to annualize a crypto perpetual futures funding rate — especially when LLM-native math would be unreliable. Ideal when you know the per-interval funding rate and how many times per day it is charged and need a precise APR figure for yield comparisons, carry trade analysis, or cost-of-capital calculations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:47:09.178Z","isFirstParty":false}