{"uid":"cap_lrRCvAFkvlhv9AsAWgPAu","slug":"api-quantoracle-dev-fc6af70f","name":"QuantOracle NPV Calculator","description":"QuantOracle: tvm/npv","url":"https://api.quantoracle.dev/v1/tvm/npv","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cash_flows":{"type":"array","items":{"type":"number"},"title":"Cash Flows","minItems":1,"description":"Array of future cash flows (period 1 onward)"},"discount_rate":{"type":"number","title":"Discount Rate","description":"Discount rate per period","exclusiveMinimum":-1}}},"responseSchema":null,"example":{"request":{"cash_flows":[-10000,3000,4000,5000,6000],"discount_rate":0.1},"response":{"ms":8.57,"npv":3887.7126,"_meta":{"url":"https://quantoracle.dev","docs":"https://api.quantoracle.dev/docs","powered_by":"QuantOracle"},"periods":5,"decision":"ACCEPT","payback_period":3,"pv_of_cash_flows":[-10000,2727.2727,3305.7851,3756.574,4098.0807],"profitability_index":1.3888}},"exampleRequest":{"cash_flows":[-10000,3000,4000,5000,6000],"discount_rate":0.1},"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZE-GnjiKH0rQGS5XVZLQa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates Net Present Value (NPV) of a series of cash flows at a given discount rate, with investment decision recommendation","exampleAgentPrompt":"What's the NPV of a project with cash flows of $1,000, $2,000, and $3,000 over 3 years using a 10% discount rate — and should I accept or reject it?","exampleUseCases":null,"resultDescription":"Returns the computed NPV (e.g. 5297.52), the number of periods, a decision recommendation (ACCEPT or REJECT), payback period, profitability index, and an array of individual present values for each cash flow period.","failureModes":["Invalid or empty cash_flows array — returns error","discount_rate missing or non-numeric — returns validation error","Negative discount rates may produce unexpected results","Very large cash flow arrays may exceed processing limits"],"whenToPreferThis":"Use this endpoint when you need fast, programmatic NPV computation with a built-in ACCEPT/REJECT decision signal and per-period present value breakdown. Prefer over generic finance libraries when you need a pay-per-call API with no setup, especially for agent workflows performing capital budgeting or investment screening at scale.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:55:34.218Z","isFirstParty":false}