MainState Finance APIs
## MainState Finance APIs — Institutional-Grade Quantitative Finance Build sophisticated financial applications with the same computational tools used by hedge funds, investment banks, and quantitative analysts. MainState Finance APIs deliver accurate, fast, and reliable financial calculations through a simple REST interface. ### What You Get **7 Powerful Financial Endpoints:** - **Black-Scholes…
MainState Finance APIs endpoints
| Method | Endpoint | Description |
|---|---|---|
| Options Pricing | ||
| POST |
blackScholesOptionPricing /finance/black-scholes |
Calculate European option prices using the Black-Scholes model. Returns call and put prices, all Greeks (delta, gamma, theta, vega, rho), and implied volatility. |
| Risk Analysis | ||
| POST |
monteCarloSimulation /finance/monte-carlo |
Run Monte Carlo simulations to model portfolio performance over time. Returns percentile distributions, expected returns, Value at Risk (VaR), and Conditional VaR (CVaR). |
| POST |
varCvar /finance/var-cvar |
Calculate Value at Risk (VaR) and Conditional Value at Risk (CVaR/Expected Shortfall) using historical simulation, parametric, and Monte Carlo methods. |
| Portfolio Management | ||
| POST |
portfolioOptimize /finance/portfolio-optimize |
Optimize a portfolio using Modern Portfolio Theory (Markowitz mean-variance optimization). Returns optimal weights, expected return, volatility, and Sharpe ratio for the… |
| POST |
kellyCriterion /finance/kelly-criterion |
Calculate optimal position sizes using the Kelly Criterion for portfolio management. Returns full Kelly, fractional Kelly, and expected growth rates. |
| Fixed Income | ||
| POST |
bondPricing /finance/bond-pricing |
Calculate bond prices, yields to maturity (YTM), duration, convexity, and DV01. Supports fixed-rate, zero-coupon, and floating-rate bonds. |
| Valuation | ||
| POST |
dcfValuation /finance/dcf-valuation |
Perform Discounted Cash Flow (DCF) valuation for companies or projects. Calculates NPV, IRR, terminal value, and sensitivity analysis. |
MainState Finance APIs pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|
| PRO | $29 / month | — |
|
| ULTRA | $99 / month | — |
|
| MEGA | $499 / month | — |
|