Quant Finance, Portfolio Risk, Kelly & DCF Math Engine (MCP) avatar

Quant Finance, Portfolio Risk, Kelly & DCF Math Engine (MCP)

Pricing

from $5.00 / 1,000 calculation executeds

Go to Apify Store
Quant Finance, Portfolio Risk, Kelly & DCF Math Engine (MCP)

Quant Finance, Portfolio Risk, Kelly & DCF Math Engine (MCP)

Eliminate LLM math hallucinations. Deterministic quantitative finance API & MCP server computing portfolio Sharpe, Sortino, Max Drawdown, VaR/CVaR, Half-Kelly sizing, multi-stage DCF + 5x5 sensitivity, XIRR/IRR & Black-Scholes Greeks in <1s. Zero external APIs, 100% uptime.

Pricing

from $5.00 / 1,000 calculation executeds

Rating

0.0

(0)

Developer

Tao Zhu

Tao Zhu

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 hours ago

Last modified

Categories

Features

Limited permissions

Share

Quant Finance, Portfolio Risk, Kelly & DCF Math Engine (MCP Server & API)

Eliminate LLM financial math hallucinations forever. Deterministic institutional-grade quantitative finance calculator API & hosted MCP server computing Portfolio Risk (Sharpe, Sortino, Calmar, Max Drawdown, Historical & Parametric VaR/CVaR), Multi-Stage DCF Valuation + 5×5 WACC/Growth Sensitivity Matrix, Half-Kelly & Stop-Loss Constrained Position Sizing, Exact Newton-Raphson IRR / XIRR / NPV & Loan Amortization, and Black-Scholes-Merton Option Pricing, Greeks & Implied Volatility.

Zero external APIs · Zero proxies · 100.00% uptime · Sub-second deterministic execution (<1s).


Why AI Agents & Finance Workflows Call This Tool

Large Language Models routinely hallucinate multi-period compounding, Newton-Raphson XIRR roots, standard normal CDF integrals (Black-Scholes), downside deviation (Sortino), and 25-cell DCF sensitivity tables. Connecting your Claude Desktop, Cursor, LangGraph, CrewAI, n8n, or autonomous finance agent to this hosted MCP engine guarantees auditable, exact IEEE-754 financial math on every call.

Mode (mode)Institutional Outputs ReturnedCore Use Cases
portfolio_riskCAGR, Annualized Vol, Sharpe, Sortino, Calmar, Peak-to-Trough Max Drawdown & Recovery Periods, 95%/99% Historical & Parametric VaR/CVaR, Win Rate, Profit Factor, Skewness, Excess KurtosisBacktest auditing, wealth management reviews, automated portfolio risk alerts
dcf_valuationDiscounted FCF Schedule, Gordon Growth Terminal Value & Optional Exit Multiple cross-check, EV, Equity Value, Implied Share Price, Margin of Safety %, Bear/Base/Bull Scenarios, 5×5 WACC × Terminal Growth MatrixAI equity research assistants, investment memo automation, CFO modeling
kelly_position_sizingExpectancy (R), Full/Half/Quarter Kelly %, Max Single Position Cap, Stop-Loss Risk Budget Max Shares, finalActionableShares, Max Dollar Loss at StopSystematic trading risk guardrails, automated trade pre-checks
cashflow_irr_npvExact IRR & Dated XIRR, NPV, MOIC, Net Profit, Simple Payback Period, plus full Mortgage/Loan Amortization (monthlyPayment, totalInterestPaid)Private equity / VC deal memos, capex evaluation, mortgage & refinancing agents
option_greeksBlack-Scholes-Merton European Call/Put Price, Intrinsic/Time Value, Implied Volatility Solver, Delta, Gamma, Vega, Daily Theta, Rho, d1/d2, ITM/ATM/OTMOptions desk tooling, derivatives education, automated hedging calculators

Live Verified Sample Outputs

Calculation TaskModeVerdictHeadline Output
Multi-Stage Tech DCF Valuationdcf_valuationUNDERVALUED$450.54 (+210.72%) with full 5×5 WACC × Terminal Growth grid
Monthly Equity Curve Risk Auditportfolio_riskINSTITUTIONAL_QUALITYSharpe 2.45 | MDD -3.85%, Sortino, Calmar, 95% HistVaR/CVaR
Half-Kelly Risk-Capped Sizingkelly_position_sizingSTANDARD_POSITION16.00% (128 shares) auto-tightened by 2% portfolio stop-loss cap

Connect to Claude Desktop, Cursor, or Any MCP Client

{
"mcpServers": {
"quant-finance-math-engine": {
"url": "https://mcp.apify.com/?actors=durative_hairstreak/quant-portfolio-dcf-math-engine"
}
}
}

Direct REST API Example (cURL / Python)

curl -X POST "https://api.apify.com/v2/acts/durative_hairstreak~quant-portfolio-dcf-math-engine/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"calculations": [
{
"label": "ATM Call Option + IV Check",
"mode": "option_greeks",
"params": {
"spot": 100, "strike": 100, "timeToExpiryYears": 1,
"riskFreeRate": 0.05, "volatility": 0.20, "optionType": "call"
}
}
]
}'

Frequently Asked Questions (FAQ)

Does this Actor depend on Yahoo Finance, Bloomberg, or any external scraper that can break? No. It is a 100% pure deterministic mathematical engine operating strictly on parameters passed in the request (by your user, SEC XBRL feed, brokerage CSV, or upstream AI agent). That means zero upstream rate limits, zero proxy costs, and sub-second execution.

Can I pass multiple calculations in a single API/MCP call? Yes! Pass an array in calculations mixing any combination of dcf_valuation, portfolio_risk, kelly_position_sizing, cashflow_irr_npv, and option_greeks to return structured JSON records in a single run.

Is this investment advice? No. All outputs are strictly deterministic mathematical calculations derived from user-supplied assumptions and inputs. Nothing returned constitutes investment, financial, tax, or legal advice.


Companion RiskOps MCP Suite by durative_hairstreak