GitHub 火線榜

GitHub 火線榜 · 倉庫檔案

virattt/ai-hedge-fund

An AI Hedge Fund Team (簡介來自倉庫自身文件。)

資料截至 October 27virattt

最好成績

#90

總榜 · Python 语言

64K

累計 Star

11K

Fork 總數

4

近 30 天在榜天數

上榜 4 天 · 近 30 天 +67 星 · 日均 +17最猛 10-25 單日 +36連續在榜 4 天

專案狀態授權條款: MIT最近 push: October 24Open Issues(含 PR): 183

自 2026-10-25 起採集;未知 = 尚未採集到

把上榜徽章放進你的 README · virattt/ai-hedge-fund[![把上榜徽章放進你的 README](https://git.vaiox.xyz/api/badge/virattt/ai-hedge-fund.svg)](https://git.vaiox.xyz/zh-TW/repo/virattt/ai-hedge-fund)

Badge · 任何仓库都可以挂 —— 未上榜的仓库显示灰章,上完榜会自动点亮。

<a href="https://git.vaiox.xyz/zh-TW/repo/virattt/ai-hedge-fund"><img src="https://git.vaiox.xyz/api/badge/virattt/ai-hedge-fund.svg" alt="把上榜徽章放進你的 README" height="20"></a>

專案文件

AI Hedge Fund

This is a proof of concept for an AI-powered hedge fund. The goal of this project is to explore the use of AI to make trading decisions. This project is for educational purposes only and is not intended for real trading or investment.

image

Note: the system does not actually make any trades.

Twitter Follow

Disclaimer

This project is for educational and research purposes only.

  • Not intended for real trading or investment
  • No investment advice or guarantees provided
  • Creator assumes no liability for financial losses
  • Consult a financial advisor for investment decisions
  • Past performance does not indicate future results

By using this software, you agree to use it solely for learning purposes.

How to Install

pipx install aihf

(or uv tool install aihf, or pip install aihf into an environment of your choice)

Then run it from anywhere:

aihf

API keys

The app asks for keys the first time it needs them and saves them to ~/.hedge-fund/.env — nothing to configure up front. It needs:

  • A Financial Datasets API key, for prices, fundamentals, and earnings.
  • One model API key for the investor agents. Supported providers: Anthropic, OpenAI, DeepSeek, Google, xAI, Kimi, TypeSafe (Jev).

Keys exported in your shell always win over the saved file.

How to Run

Interactive app

aihf

With no arguments, this launches the interactive terminal app. It has two modes:

  • Paper trading — your funds, each with a ledger of real market days and fake money. Highlight a fund to see what its next run will do; press enter to run it through the next completed session (an approval step shows the exact decision about to execute before anything trades), s for its full session history, h/r for the kill switch. Build a new fund from the same list: strategies, capital, cadence, tickers, and it is live. Every session is appended to a hash-chained ledger in ~/.hedge-fund/paper/<name>/, so NAV is a track record, not a reset.
  • Backtesting — replay a fund over history and watch its equity curve draw against its benchmark. Results are saved to ~/.hedge-fund/research/. Fund definitions live in ~/.hedge-fund/mandates/ and carry no tickers; you pick the universe per backtest.

Development

git clone https://github.com/virattt/ai-hedge-fund.git
cd ai-hedge-fund
poetry install
poetry run aihf
poetry run pytest hedge_fund

How to Contribute

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

Important: Please keep your pull requests small and focused. This will make it easier to review and merge.

Feature Requests

If you have a feature request, please open an issue and make sure it is tagged with enhancement.

License

This project is licensed under the MIT License - see the LICENSE file for details.

當前上榜

  • 339

    總榜 · 史上最強

    64K 星 · 11K fork · 累計星星

    總榜 →
  • 90

    總榜 · 史上最強 · Python

    64K 星 · 11K fork · 累計星星

    總榜 · Python →
  • 150

    黑紅榜 · 爭議指數

    64K 星 · 11K fork · 爭議指數

    黑紅 →

近 30 天勢頭

累計 Star 走勢

名次走勢

每日新增 Star

同榜競速 · 名次近鄰 · 總榜

← 回到榜單

GitHub 火線榜往日榜發現联系我们 · Contact