{"uid":"cap_f_dbQDxIRmuDcPrN-B16z","slug":"finmath-apr-to-apy-converter-e1a92a93","name":"finmath APR to APY Converter","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/apr_to_apy","method":"POST","headers":{},"bodySchema":{"type":"object","required":["apr","compounds_per_year"],"properties":{"apr":{"type":"number","description":"apr"},"compounds_per_year":{"type":"number","description":"compounds_per_year"}}},"responseSchema":{"type":"object","required":["result","meta"],"properties":{"meta":{"type":"object"},"result":{}}},"example":{"request":{"apr":5,"compounds_per_year":12},"response":{"meta":{"tool":"apr_to_apy","disclaimer":"Deterministic calculation utility. Not financial, investment, or trading advice.","deterministic":true},"result":64.34496113081846}},"exampleRequest":{"apr":5,"compounds_per_year":12},"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_sIn9CQsJPx7SGTWdWqLFX","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 an Annual Percentage Rate (APR) to Annual Percentage Yield (APY) given a compounding frequency, using exact arithmetic.","exampleAgentPrompt":"What's the APY on a savings account advertising 5.2% APR compounded monthly — give me the exact figure?","exampleUseCases":null,"resultDescription":"Returns a JSON object with a 'result' field containing the computed APY as a number, and a 'meta' field with additional call metadata.","failureModes":["Missing required fields (apr or compounds_per_year) returns a validation error","Non-numeric values for apr or compounds_per_year return a type error","compounds_per_year of 0 may cause division-by-zero or invalid result","Payment failure (402) if USDC balance is insufficient","Network timeout if Cloudflare Worker is unavailable"],"whenToPreferThis":"Use this endpoint when you need a mathematically exact APR-to-APY conversion rather than relying on LLM approximation. Prefer it for financial applications, DeFi yield comparisons, lending rate disclosures, or any scenario where rounding errors are unacceptable. Ideal when the compounding frequency is known and a deterministic, auditable result is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:54:41.745Z","isFirstParty":false}