Ultra Feature. Requires an Ultra subscription. Get started at api.mathematicalcompany.com
Why Not Just MCP + LLM?
An LLM with raw MCP access can submit orders, check positions, discover markets, and run backtests across prediction markets, stocks, and crypto. That covers individual actions. What it does not cover is running a fund.
The core difference: raw MCP only acts when the LLM is prompted. The autonomous layer runs a background oversight loop that computes NAV, checks drawdowns, monitors correlations, detects settlements, accrues fees, and tunes execution parameters while the LLM is idle.
The LLM proposes actions with reasoning and a confidence score. The Decision Framework evaluates each proposal against confidence thresholds, rate limits, and the current operating mode. It can execute, escalate to a human, or reject. The LLM cannot override a rejection.
Isolated MCP Servers
Fund tools are isolated from trading tools. You can wire them as separate MCP servers so the LLM cannot accidentally callsubmit_order when it should be calling deploy_strategy.
HORIZON_FUND_MODE=1. If it is not set, they return an error instead of executing.
The Fund Uses Everything
The separate MCP server controls what the LLM can call directly. Under the hood, the fund orchestrates all of Horizon’s capabilities:- Each strategy gets its own Engine with the 8-point risk pipeline, order management, and exchange connectivity.
- Market universe refresh uses
discover_markets()to find and score opportunities. - Autopilot runs
backtest()androbustness_test()before deploying any strategy. - Every strategy gets a
RiskConfigscaled to its capital allocation. - Strategies use any of the 17 feed types for real-time data.
- Orders route through any of the 7 exchanges. Smart routing picks the best venue.
Architecture
Operating Modes
- Dry-run: The LLM proposes actions. A human approves or rejects each one before execution.
- Supervised: Low-risk actions (paper deploys, research scans) execute automatically. High-risk actions (live deploys, kill switch, scale-up, strategy retirement) escalate for human approval.
- Autonomous: All actions execute within guardrails. Rate limits, confidence thresholds, and bias checks still apply.
Bias Prevention
BiasGuard screens every deploy and scale-up decision for 5 types of LLM overfitting:- Backtest overfitting: Blocks when probability of overfitting (PBO) exceeds 50%, deflated Sharpe is below 1.0, or out-of-sample Sharpe drops below 0.5.
- Recency bias: Decays memory confidence exponentially with a 90-day half-life. Old memories carry less weight automatically.
- Confirmation bias: Blocks deploying more than 3 strategies of the same type within a 24-hour window.
- Performance chasing: Blocks scale-up on strategies younger than 14 days or with 3-day returns above 10% (likely mean-reverting).
- Small-sample learning: Caps confidence proportionally when observations are below the minimum threshold (30 trades for strategy conclusions, 5 for general patterns).
What’s Built
Every component listed above is implemented, tested, and wired into the FundManager oversight loop:- 180+ MCP tools (trading + 32 fund management)
- 36 fund subsystems integrated into a single orchestrator
- 3 operating modes with decision governance
- Confidence thresholds, rate limits, hash-chained audit trail
- Self-tuning confidence thresholds that learn from decision outcomes
- Persistent memory in SQLite, queryable by category, with confidence decay
- 6 stress scenarios (10/20% drawdown, correlation spike, liquidity crisis, exchange outage, black swan)
- Background oversight loop (NAV, risk, correlation, VaR, settlement, fees, adaptive tuning)
- Fund MCP server isolated from raw trading tools
- BiasGuard wired into Autopilot, Agent, and Memory
- Quant flow: regime detection, 7-factor alpha model, hypothesis lifecycle, signal ensemble, portfolio optimizer, risk analytics, performance attribution, execution intelligence, alpha decay tracking
- Fund operations: alerts with webhook delivery, double-entry ledger, paper-to-live promotion, self-healing recovery
- Explainability: rich structured responses for MCP tools, adaptive thresholds, built-in backtester
- Multi-fund orchestration: run multiple funds as a cluster with aggregate views and cross-fund rebalancing