{"uid":"cap_1q9vdr5msCgpVqGacK6N7","slug":"api-quantoracle-dev-0bb3c014","name":"QuantOracle IRR Calculator","description":"QuantOracle: tvm/irr","url":"https://api.quantoracle.dev/v1/tvm/irr","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cash_flows":{"type":"array","items":{"type":"number"},"title":"Cash Flows","minItems":2,"description":"Array of cash flows (first is typically negative = initial investment)"}}},"responseSchema":null,"example":{"request":{"input":{"body":{"cash_flows":[-10000,3000,4000,4500,5000]},"type":"http","method":"POST","bodyType":"json"}},"response":{"ms":7.33,"irr":0.214113,"_meta":{"url":"https://quantoracle.dev","docs":"https://api.quantoracle.dev/docs","powered_by":"QuantOracle"},"irr_pct":21.4113,"periods":4,"npv_at_irr":0,"total_invested":10000,"total_received":16500,"profit_multiple":1.65}},"exampleRequest":{"cash_flows":[-10000,3000,4000,4500,5000]},"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_b8Ca0ALeQya3AvUrMLZEu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","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, returning the periodic rate, annualized percentage, NPV at IRR, and investment summary statistics.","exampleAgentPrompt":"What's the IRR on an investment where I put in $10,000 upfront and receive $3,000, $4,000, $4,500, and $5,000 over the next four periods?","exampleUseCases":null,"resultDescription":"Returns the IRR as a decimal and percentage, the number of periods, the NPV at the computed IRR (should be ~0), total amount invested, total cash received, and the profit multiple (total received / total invested). Also includes computation time in milliseconds.","failureModes":["No sign change in cash flows (all positive or all negative) — IRR cannot be computed, returns error","Non-convergence when cash flows have multiple IRR solutions (non-normal cash flows)","Empty or single-element cash_flows array — insufficient data for IRR","Invalid data types in cash_flows (non-numeric values)"],"whenToPreferThis":"Use this endpoint when you need a fast, precise IRR calculation from a known cash flow series, especially in financial modeling, project evaluation, or investment screening workflows. Prefer it over spreadsheet tools or manual iteration when automating capital budgeting or portfolio analysis pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:34:15.161Z","isFirstParty":false}