Npv Irr
npv_irrInvestment appraisal for a cash-flow series: NPV at a discount rate, IRR (all roots for non-conventional flows), MIRR, profitability index, simple and discounted payback; with dates gives Excel-compatible XNPV and XIRR. POST JSON body {cashFlows, ratePct, dates?}. Price: $0.003 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/npv-irr
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cashFlows": "<cashFlows>"
},
"name": "npv_irr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dates | No | Optional YYYY-MM-DD date per cash flow for XNPV / XIRR (Actual/365) | |
| ratePct | No | Discount rate per period (or per year with dates), percent | |
| cashFlows | Yes | Cash flows per period starting at t=0 (investments negative) | |
| financeRatePct | No | MIRR finance rate (default ratePct) | |
| reinvestRatePct | No | MIRR reinvestment rate (default ratePct) |