Its own key scope.
Once activated, keys will need finance:calculate. Keys created with a product list keep exactly the products they had; create a new key with that scope after activation.
11 / FINANCE TOOLS API PREVIEW
Preview documentation for seven everyday finance calculations: growth, loans, CAGR, Kelly sizing, drawdown recovery, trade P/L and real return.
| Endpoint | What it returns |
|---|---|
| POST /v1/finance/compound-growth | Future value of a lump sum plus regular contributions, any compounding from yearly to daily, with a year-by-year schedule. |
| POST /v1/finance/loan-payment | Monthly payment, total interest and an optional amortisation schedule; extra payments show months saved. |
| POST /v1/finance/cagr | Compound annual growth rate, total return and growth multiple between two values. |
| POST /v1/finance/kelly | Full and fractional Kelly percentage, expectancy in R and break-even win rate, with an optional dollar amount. |
| POST /v1/finance/drawdown-recovery | Gain needed to get back to a peak, the dollars to recover and how many months at a given monthly return. |
| POST /v1/finance/trade-pnl | Gross and net P/L of a closed position in any asset, return on notional and account, and R multiple. |
| POST /v1/finance/real-return | Inflation-adjusted return (exact Fisher relation and the quick approximation) and value in today's money. |
{
"principal": "25000",
"annual_rate_percent": "6.5",
"term_months": 60
}{
"monthly_payment": "489.15",
"months_to_payoff": 60,
"total_paid": "29349.20",
"total_interest": "4349.20",
"principal": "25000.00",
"data_basis": "caller_supplied"
}Once activated, keys will need finance:calculate. Keys created with a product list keep exactly the products they had; create a new key with that scope after activation.
Loan principal and extra payments must use whole cents (at most two decimal places). Schedules round each month to the cent and the final payment absorbs the remainder, so the principal column sums to the loan.
Kelly returns no_positive_edge instead of a negative bet, and flags full Kelly above 25%.
BUILD WITH FYNX