Hermes Plant logo

Hermes Plant

Finance & quant APIs for AI agents

DCF and IRR for AI agents: a pay-per-call cashflow API

One call returns net present value, IRR for periodic cashflows, XIRR for dated cashflows, MOIC / DPI / TVPI multiples, payback period, and an optional discounted-cash-flow valuation with a Gordon-growth or exit-multip…

4 resources

What CashflowLens computes, What you send, How an agent calls it

What CashflowLens computes

One call returns net present value, IRR for periodic cashflows, XIRR for dated cashflows, MOIC / DPI / TVPI multiples, payback period, and an optional discounted-cash-flow valuation with a Gordon-growth or exit-multiple terminal value. It is the cashflow and return toolkit a valuation or PE agent reaches for most.

What you send

Provide a cashflow series — numbers for periodic flows, or {amount, date} objects to switch on dated XIRR — plus an optional discount rate and terminal assumptions. Outflows are negative, inflows positive. There is no market-data dependency: the endpoint computes purely over the inputs your agent already holds.

How an agent calls it

POST the cashflows to /api/agent-services/cashflowlens/analyze, settle the x402 payment on the 402 challenge, and read the summary plus evidence-backed findings from the 200 response. At $0.20 per call there is no subscription to manage.

Why deterministic matters here

IRR and XIRR require a root-finding solver; an LLM cannot be trusted to run one. CashflowLens returns the exact rate that zeroes NPV every time, so the number your agent reports can survive an audit.