The Claude Quant PlaybookDownload ebookDownload ebook

Free directory · 93 open-source repos · checked 15 November 2026

Every open-source hedge-fund trading system on GitHub

Free code you can run yourself: AI agent funds, trading bots, backtesters and full quant stacks. Each card says what it does, which markets it trades, and how to plug it into Claude.

Build a trading system with Claude.Download ebook

1What do you want to build?

2Which market?

What is a Claude plug-in?Plug-in?

A plug-in (also called an MCP server) lets Claude use a tool by itself while you chat: read prices, check your bot, or place a paper trade. You add it once with one line. Cards that have one show the exact line to copy; every other card has a prompt to paste into Claude Code.

ClaudeShow
Language
LevelLicence

Showing all 93

Starter stacks

Not sure where to start? Pick a ready combination

Each stack is a few repos from this page that work well together. Tap a name to jump to its card.

  1. First steps, US stocksYou know a little Python and want to test simple ideas.Backtesting.pyyfinanceQuantStatsAlpaca SDKAlpaca MCP (official)Backtest with free Yahoo data, then paper trade on Alpaca and ask Claude how it went.
  2. Crypto botYou want a bot running 24/7 on an exchange.FreqtradeNostalgiaForInfinityFreqtrade MCPCCXT MCP (official)Run Freqtrade in dry-run with a ready strategy, and let Claude check it daily.
  3. AI agent fundYou want AI agents to research and decide.TradingAgentsAI Hedge FundAlpaca MCP (official)QuantStatsLet the agents decide on paper, log every call, and measure them against buy-and-hold.
  4. Pro, many marketsYou want one serious system for stocks, futures and crypto.NautilusTraderArcticDBskfolioib_asyncStore data in ArcticDB, backtest in Nautilus, size with skfolio, trade through IBKR.
  5. IndiaYou trade NSE and BSE stocks, futures and options.OpenAlgoKite Connect (Zerodha)Backtesting.pyvectorbtTest on history, then run OpenAlgo in Analyzer mode before going live.
  6. Prediction marketsYou want to trade Polymarket and similar markets.Polymarket clientpmxtpoly-makerCCXT MCP (official)Read markets with the client, then try poly-maker in --paper mode.

Plug any repo into Claude

Three prompts that work on every repo here

Open Claude Code in an empty folder and paste these in order. Replace [owner/repo] with the name under any card title.

  1. 1Understand itKnow what the code does before it touches money.
    Clone https://github.com/[owner/repo] and explain in simple words what it does, how it is organised, what it needs (API keys, data, money), and anything risky in the code: where it sends orders, where it stores keys, and what it sends over the internet.
  2. 2Test itRun a backtest with costs, and look for tricks.
    Install it in a virtual environment and run its simplest backtest or example. Show me the results with trading costs and slippage included, and tell me if anything looks too good to be true, like look-ahead bias, overfitting or missing costs.
  3. 3Paper trade itReal market, fake money, every trade logged.
    Set it up for paper trading or dry-run only. Use API keys that can trade but never withdraw. Run it for a week, log every trade to a CSV file, and give me a short daily summary of what it did and why.

Read this first

Free code can still cost you money

Simple answers

What do the licences mean for me?

Free for any use (MIT, Apache, BSD, public domain): use it for anything, including a business. Must share changes (GPL, AGPL, LGPL): free to use; if you give the software to others, or with AGPL run it as a service for others, you must share your changes under the same licence. Running it for yourself is fine. Free with limits: the card says the limit, like "you can't sell it" or "personal use only". Always read the licence file if you plan to make money from the code itself.

What do "Updated" and "commits in the past year" mean?

Both come from the repo's own history on GitHub, checked 15 November 2026. Updated is the date of the latest change. Commits in the past year counts every change saved in the 12 months before that, including automatic ones. Lots of recent commits means people still work on it; zero means you may be on your own if something breaks.

Where are Backtrader, Zipline and pyfolio?

Backtrader's code was last updated in April 2023, and the original Zipline and pyfolio in 2020, so we left them out. Zipline, pyfolio, Alphalens and empyrical live on as maintained "Reloaded" versions, which are listed. Old bots like Gekko and Zenbot are out for the same reason.

How do I add a plug-in to Claude?

In a terminal, paste the line from the card (it starts with claude mcp add). Lines with uvx need uv, and lines with npx need Node.js. A line starting with /plugin goes inside Claude Code itself. Replace any your_key with your own (paper) keys, then type /mcp in Claude Code to check it is connected.

Which one should I start with?

If you have never backtested: Backtesting.py with yfinance. For a crypto bot: Freqtrade in dry-run. For AI agents: TradingAgents or AI Hedge Fund. For one system that does everything: NautilusTrader or QuantConnect LEAN. The starter stacks put these together.

How do I suggest a repo?

Send it to @RitOnchain on X. To be listed it needs an open-source licence and real work in the past 18 months.

Rather not set up code? Describe your idea and let AI build the bot.

Build a bot with AgenKit

Licences, last updates and commit counts read from each repo on GitHub on 15 November 2026. Nothing here is a recommendation to trade any strategy. Past results, including backtests, do not predict future results. This is education, not financial advice.