finmath – Financial & DeFi Math Engine is a paid API for AI agents from finmath.qzqh5rrbkz.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).
Computes deterministic financial and DeFi calculations (NPV, IRR, Black-Scholes, impermanent loss, Uniswap v3, VaR, health factor, etc.) with base64-encoded input, billed per call in USDC
Deterministic finance and crypto math for AI agents: TradFi (NPV, IRR, XIRR, Black-Scholes + Greeks, bonds, VaR, Sharpe) and DeFi (impermanent loss, perp liquidation, funding, Uniswap v3, health factor, cost basis). Exact, model-free arithmetic that LLMs get wrong — priced per call in USDC.
Returns a result object containing the computed financial value(s) (e.g. NPV amount, option premium, Greeks, impermanent loss percentage, liquidation price) alongside a meta object with call metadata. The exact shape of result depends on the mode used.
POSThttps://finmath.qzqh5rrbkz.workers.dev/v1/base64Choose this endpoint when you need exact, reproducible financial arithmetic that LLMs cannot reliably compute themselves — especially for Black-Scholes pricing, Greeks, IRR/XIRR, bond math, DeFi impermanent loss, Uniswap v3 range math, or perp liquidation levels. Prefer it over asking the LLM directly any time precision matters or the calculation is model-free by definition.
{
"mode": "npv",
"input": "eyJkaXNjb3VudF9yYXRlIjogMC4xLCAiY2FzaF9mbG93cyI6IFstMTAwMDAsIDMwMDAsIDMwMDAsIDMwMDAsIDMwMDBdLCAicGVyaW9kcyI6IFswLCAxLCAyLCAzLCA0XX0="
}| Field | Type | Description |
|---|---|---|
| mode | string | mode |
| inputrequired | string | input |
{
"meta": {
"tool": "base64",
"disclaimer": "Deterministic calculation utility. Not financial, investment, or trading advice.",
"deterministic": true
},
"result": {
"result": "{\"discount_rate\": 0.1, \"cash_flows\": [-10000, 3000, 3000, 3000, 3000], \"periods\": [0, 1, 2, 3, 4]}"
}
}| Field | Type | Description |
|---|---|---|
| metarequired | object | |
| resultrequired | — |
No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"