QuantOracle
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
The quantitative computation API for autonomous financial agents
63 deterministic, citation-verified calculators + 10 composite workflows. 1,000 free calls/day. Pay-per-call on Base or Solana.
Calculators |
CLI |
MCP Server |
x402 Payments |
Free Tier |
All Endpoints |
Integrations
---
Try it without writing code
**12 free interactive calculators** backed by the same API are live at **quantoracle.dev** — no signup, no API key:
- Black-Scholes Option Pricing — call/put price + full Greeks
- American Option (Binomial Tree) — early exercise + dividends
- Options Profit Calculator — multi-leg payoff diagrams
- Implied Volatility — Newton-Raphson IV solver
- Monte Carlo Simulation — portfolio + retirement scenarios
- Kelly Criterion — full / half / quarter-Kelly sizing
- Position Size — fixed-fractional risk
- Value at Risk (VaR) — parametric VaR + CVaR
- Sharpe Ratio — with 95% confidence interval
- CAGR — compound annual growth rate + projections
- Crypto Liquidation Price — long/short, any leverage
- Impermanent Loss — Uniswap v2 + v3
---
Why QuantOracle?
**Every financial agent needs math. QuantOracle is that math.**
- **63 pure calculators** across options, derivatives, risk, portfolio, statistics, crypto/DeFi, FX/macro, and TVM
- **10 composite workflows** that bundle 5-15 calculator calls (backtest strategies, rebalance planning, options strategy selection, hedging recommendations, full risk analysis, pairs signals, and more)
- **Zero dependencies** for the 73 calculators + composites -- no market data, accounts, or third-party APIs; send numbers in, get numbers out
- **QuantOracle Live (new)** -- a separate paid tier that *brings* the data: fresh crypto volatility (/v1/live/volatility) and perp funding rates (/v1/live/funding-rates). We fetch the live market data and run the math, so your agent doesn't have to. 20 free calls/IP/day to evaluate, then pay-per-call via x402.
- **QuantOracle Watch (new)** -- 24/7 position monitoring: register a crypto perp position once and get HMAC-signed webhooks on funding-adjusted liquidation distance, funding flips, and vol-regime changes — re-checked every 60 seconds. Free 48h trial; $5 per position per 30 days via x402.
- **Deterministic** -- the calculators always produce the same outputs for the same inputs, so agents can cache, verify, and chain calls
- **Citation-verified** -- every formula tested against published textbook values (Hull, Wilmott, Bailey & Lopez de Prado)
- **120 accuracy benchmarks** passing with analytical solutions
- **Fast** -- sub-millisecond to 70ms compute time per call
- **Free tier** -- 1,000 calls/IP/day, no API key, no signup, zero friction
QuantOracle is designed to be called repeatedly. An agent running a backtest might call 10+ endpoints per iteration. That's the model -- be the calculator agents reach for every time they need quant math.
Why not just let the LLM do the math?
| | QuantOracle | LLM in-context math |
|---|---|---|
| **Accuracy** | Exact (analytical formulas) | 70-85% on complex math |
| **Determinism** | Same input = same output, always | Different every run |
| **Speed** |
bash
curl -X POST https://api.quantoracle.dev/v1/batch \
-H "Content-Type: application/json" \
-d '{
"requests": [
{"endpoint": "options/price", "params": {"S": 100, "K": 105, "T": 0.25, "r": 0.05, "sigma": 0.2}},