{"uid":"cap_2rzBLihF9rYalJv8GQSPa","slug":"finmath-staking-yield-calculator-85bc404e","name":"finmath Staking Yield 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/staking_yield","method":"POST","headers":{},"bodySchema":{"type":"object","required":["apr","principal","compounds_per_year"],"properties":{"apr":{"type":"number","description":"apr"},"years":{"type":"number","description":"years"},"principal":{"type":"number","description":"principal"},"compounds_per_year":{"type":"number","description":"compounds_per_year"}}},"responseSchema":{"type":"object","required":["result","meta"],"properties":{"meta":{"type":"object"},"result":{}}},"example":{"request":{"apr":5.5,"years":2,"principal":10000,"compounds_per_year":12},"response":{"meta":{"tool":"staking_yield","disclaimer":"Deterministic calculation utility. Not financial, investment, or trading advice.","deterministic":true},"result":{"final_value":85617642.11677437,"total_yield":85607642.11677437,"effective_apy":91.52980174882812}}},"exampleRequest":{"apr":5.5,"years":2,"principal":10000,"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_h9gJMyv9mjAQ4QdvDXIao","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 compound interest and staking yield for a given principal, APR, compounding frequency, and time period","exampleAgentPrompt":"I'm staking 10,000 USDC at a 7.5% APR compounded daily (365 times per year) for 2 years — what will my total staking yield be?","exampleUseCases":null,"resultDescription":"Returns a result object containing the computed staking yield (total accumulated value or interest earned) along with a meta object containing calculation metadata such as inputs and method used.","failureModes":["Missing required fields (apr, principal, compounds_per_year) returns a validation error","Non-numeric values for numeric fields return a 400 error","APR of 0 or negative principal may return edge-case or zero results","Payment failure (402) if USDC payment is not included or insufficient","Very large compounds_per_year values (e.g. continuous compounding) may hit precision limits"],"whenToPreferThis":"Use this endpoint when you need exact, deterministic compound interest or staking yield calculations — especially for DeFi staking positions where LLM arithmetic would be unreliable. Prefer this over general-purpose LLM math when precision matters, when the user provides a specific APR and compounding schedule, or when auditable, reproducible results are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:56:58.649Z","isFirstParty":false}