{"uid":"cap_Sl_bY6sZi6xjp_J5J-agK","slug":"finmath-irr-calculator-00e5b81c","name":"finmath IRR 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/irr","method":"POST","headers":{},"bodySchema":{"type":"object","required":["cashflows"],"properties":{"cashflows":{"type":"array","description":"cashflows"}}},"responseSchema":{"type":"object","required":["result","meta"],"properties":{"meta":{"type":"object"},"result":{}}},"example":{"request":{"cashflows":[-1000,300,300,300,300]},"response":{"meta":{"tool":"irr","disclaimer":"Deterministic calculation utility. Not financial, investment, or trading advice.","deterministic":true},"result":0.0771384729520836}},"exampleRequest":{"cashflows":[-1000,300,300,300,300]},"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_9bSnhP8JtOx_7Nky8R6ZW","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 Internal Rate of Return (IRR) for a series of cash flows with deterministic, exact arithmetic","exampleAgentPrompt":"What's the IRR on a deal where I put in -$100,000 upfront and then receive $20,000, $35,000, $40,000, and $50,000 over the next four years?","exampleUseCases":null,"resultDescription":"Returns the computed IRR as a numeric result (the periodic rate of return that makes the net present value of the cash flows equal to zero), along with metadata about the computation such as convergence status and iteration details.","failureModes":["Cash flows with no sign change may return no real IRR solution (non-convergence)","Empty or single-element cashflows array may return an error","All-positive or all-negative cash flows have no IRR solution","Numerical convergence failure if cash flows are extreme or degenerate","Missing required cashflows field returns validation error"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, exact IRR calculation that LLMs and spreadsheet approximations may get wrong — especially for investment analysis, capital budgeting, private equity, or any scenario involving irregular periodic cash flows where precision matters. Prefer over LLM-computed math when auditability and exactness are required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:47:42.550Z","isFirstParty":false}