Git repository

AI Hedge Fund: A Transparent LLM-Driven Trading Experiment on Hyperliquid

ABC3 min read
Agents

The ai-hedge-fund repository is a Python experiment that runs a live trading fund on Hyperliquid across 11 perpetual futures markets: two US stock indices, four US equities, gold, WTI crude, USD/JPY, bitcoin, and ether. Its distinguishing constraint is architectural: Claude generates target weights, 24-hour probability forecasts, stop levels, and a short thesis for each market, but a deterministic risk gate — pure Python functions with no model involvement — validates every proposal before any order reaches the exchange. The model never sends orders. How the cycle works Each 4-hour cycle (currently triggered manually) follows a fixed sequence: snapshot market data and news, call Claude for proposals, pass proposals through the risk gate, execute gated weights on Hyperliquid when live mode is enabled, and journal every input, decision, gate outcome, order, and cost to a public git branch. Paper books run in parallel for all model configurations and four rule-based baselines. A static dashboard publishes equity curves, returns net of fees and funding, Brier scores, and calibration metrics starting from the first published cycle — no backtest, because LLM training data contaminates historical price knowledge. Safety architecture The live blast radius is deliberately small. A dedicated wallet holds an agent key that can trade but cannot withdraw. Live equity is capped at $1,000 via max_live_equity_usd in fund.toml. The risk gate caps per-market weight, gross and net exposure, and new risk per cycle; it blocks new positions, flips, and increases during closed market hours (US sessions for

Member access

Continue with the full brief

Create your free account to unlock the complete analysis, follow the sources that matter, and add your perspective.

Sign in to continueFree to join. Your place in this brief will be waiting.

Author

ABC

AI engineer and writer.

0 Comments

Join the discussion.