Mindket

AI Hedge Fund 对冲基金概念验证

新上架第 2 版 · 更新于
星标64.5k

概览

Virat Singh 的开源概念验证项目,做的是一只由 AI 驱动的对冲基金。大语言模型投资者智能体和量化模型各自给出判断,基金既可以回放过去的交易日,也可以在真实的交易日里用虚拟资金做模拟交易。它不会下任何真实订单。

AI Hedge Fund 对冲基金概念验证 是一款 GitHub 上的开源项目,属于财务类,由 Mindket 上架。可免费获取。当前为第 2 版,最近更新于 。按它的 README 从 GitHub 安装。Mindket 的设置说明可在你的 Mindket 账户获取,以 zip 压缩包下载。

速览

用在
  • Terminal app: aihf opens an interactive app for paper trading and backtesting
  • Command line: the engine README shows aihf backtest and aihf paper commands, run through Poetry from a checkout, and the roadmap calls the CLI a thin machine client with JSON on stdout
  • Model providers: Anthropic, OpenAI, DeepSeek, Google, xAI, Kimi and TypeSafe (Jev)
  • Market data: Financial Datasets, with an API key, or on the main branch x402 pay-per-call from a Base wallet (last 365 days of data, non-professional use)
先运行
pipx install aihf
aihf

平台

Claude Code编程智能体
Codex编程智能体
Cursor代码编辑器

关于

它是什么

AI Hedge Fund is a proof of concept by Virat Singh (virattt) that explores using AI to make trading decisions. You install it as the aihf command, and it opens an interactive terminal app. A fund there is a set of strategies. Each strategy blends the views of analysts, which are LLM investor agents such as Warren Buffett and Charlie Munger, or quant models such as post-earnings drift. The README says the project is for educational purposes only and that the system does not actually make any trades.

  1. Point-in-time market and fundamentals data
  2. Analysts give each stock a conviction and a thesis
  3. The portfolio blends their views into target weights
  4. Hard risk limits clamp the book
  5. The broker fills the orders at the next close
  6. Paper funds append the session to a hash-chained ledger

适合谁

Developers, students and quant hobbyists who want to see how an LLM-plus-quant trading system is built, run it on a few tickers and read or extend its code. The roadmap invites new analysts, strategies and data sources. Skip it if you want a bot that trades for you. The README says it is not for real trading, and live brokers are only planned.

用在哪里

It runs in a terminal on Python 3.11 or newer. The maker’s README and docs give no steps for Claude Code, Codex, Cursor or other coding agents, and no skill, plugin or MCP server.

  • Terminal app: aihf opens an interactive app for paper trading and backtesting
  • Command line: the engine README shows aihf backtest and aihf paper commands, run through Poetry from a checkout, and the roadmap calls the CLI a thin machine client with JSON on stdout
  • Model providers: Anthropic, OpenAI, DeepSeek, Google, xAI, Kimi and TypeSafe (Jev)
  • Market data: Financial Datasets, with an API key, or on the main branch x402 pay-per-call from a Base wallet (last 365 days of data, non-professional use)

如何设置

Get it saves a zip of Minda’s setup notes in your downloads folder, with the install and key steps from the maker’s README and docs. You install the aihf package with pipx, uv or pip, then run it.

What you need first
NeedDetail
Python3.11 or newer
An installerpipx, uv or pip
Market dataA Financial Datasets API key, or, from the main branch only, a Base wallet that holds USDC for x402 pay-per-call (last 365 days of data, non-professional use)
A modelOne API key from Anthropic, OpenAI, DeepSeek, Google, xAI, Kimi or TypeSafe (Jev)
  1. Run the install line from the README.
  2. Run aihf to open the app.
  3. Enter the keys when it asks. It saves them to ~/.hedge-fund/.env, and keys exported in your shell always win over that file.
pipx install aihf
aihf

The README also gives uv tool install aihf, and pip install aihf into an environment of your choice. For the x402 option the README on the main branch gives this line. The PyPI release, aihf 2.6.4, lists no x402 extra and its README does not mention x402, so until a release adds it, the x402 option is only on the repository’s main branch.

pip install 'aihf[x402]'

如何使用

Start with aihf and pick a mode. In the paper trading list, highlight a fund to see what its next run will do, then press enter to run it through the next completed session. An approval step shows the exact decision before anything trades.

The two modes
ModeWhat it doesWhere results go
Paper tradingRuns your funds through real market days with fake money, one completed session at a timeA hash-chained ledger in ~/.hedge-fund/paper/<name>/
BacktestingReplays a fund over history and draws its equity curve against its benchmarkResult files in ~/.hedge-fund/research/

Fund definitions live in ~/.hedge-fund/mandates/ and carry no tickers. You pick the universe per backtest, or when you deploy a paper fund. You can build a new fund by choosing its strategies, capital, cadence and tickers.

示例

You want to see how a value-and-drift fund behaves. The repository’s sample mandate has two strategies. Deep-value is a long-only pod led by the Graham agent, with Buffett and Munger beside it. Earnings-drift is a systematic pod that runs the post-earnings drift model, long and short. The fund starts with 100000 in capital, rebalances weekly, is measured against SPY and lets no single name pass 25% of equity.

You point it at tickers and a window. The engine README gives this backtest line, written for a checkout. With an x402 wallet this 2024 window fails: x402 serves only the last 365 days, and older data needs a Financial Datasets API key.

poetry run aihf backtest ~/.hedge-fund/mandates/example.yaml \
    --universe AAPL,MSFT,NVDA --start 2024-01-02 --end 2024-06-28

It prints the full result JSON, a record for every session, and saves a copy to ~/.hedge-fund/research/. The docs do not say whether an install puts example.yaml in ~/.hedge-fund/mandates/. The repository’s sample mandate is hedge_fund/fund/example.yaml. To paper trade the same fund, create it and tick it once per completed session.

poetry run aihf paper create alpha --mandate ~/.hedge-fund/mandates/example.yaml --universe AAPL,MSFT
poetry run aihf paper tick alpha

A tick that finds a new completed session adds one record to the fund’s ledger.

新手与专家

新手:In this app a mandate is a file that names a fund’s strategies, risk limits, capital and how often it trades. The money is pretend. Paper trading runs a fund on real market days with fake money, and a backtest replays it over past days. Start with aihf and the two modes, and read the disclaimer first. Nothing here places a real order.

专家:Every session is one verb, advance, called once per completed session in both backtest and paper mode. A decision made at session T’s close is executed at T+1’s close. The engine README says stepping a paper fund through the same sessions produces byte-identical records.

Language models never touch the trade. Agents form views and write theses, deterministic code sizes and places orders, and risk limits are hard gates. The engine README makes point-in-time data a principle: on a simulated date only data filed by then is visible, filtered on filing date and not report period. The roadmap still marks point-in-time data correctness as in progress.

The ledger is append-only and hash-chained. Replay verifies the chain and refuses an altered record, and the paper broker’s book is reconciled against the ledger before anything trades. A mismatch raises BookMismatch rather than being repaired, and any failure inside advance halts the fund.

To add an analyst, implement AlphaModel.predict(ticker, date, data_client) and return a Signal with a value from -1 to +1. A new strategy needs no code: a YAML file in strategies/ bundles existing models with a blend policy.

注意事项

Market data comes from Financial Datasets and model calls go to the provider you choose. The README gives no cost for a run.

  • Education only: the README says it is not for real trading or investment, gives no investment advice or guarantees, and accepts no liability for financial losses. Past performance does not indicate future results
  • Keys: they are saved to ~/.hedge-fund/.env. For the x402 option the key is a wallet’s private key, and the key template says to use a small, separate wallet
  • Agents are approximations: VISION.md says the investor agents are stylized approximations of public philosophies, not the actual individuals and not endorsements
  • Still being built: the engine README carries a work-in-progress note, and the roadmap marks live brokers and a validation gate as planned and the built-in scheduler as in progress
  • Files: the app keeps its keys, fund definitions, results, ledgers and a cache of API responses under ~/.hedge-fund/
  • License: MIT, Copyright (c) 2024 Virat Singh

README 和文件

README

AI Hedge Fund:安装说明

这个工具包里只有安装说明,由 Mindket 编写。AI Hedge Fund 应用要从作者的仓库和 PyPI 安装:https://github.com/virattt/ai-hedge-fund

这些说明不是 Virat Singh(virattt)写的,也没有得到他的认可。README 的开头是“This is a proof of concept for an AI-powered hedge fund.”,意思是这是一个由 AI 驱动的对冲基金的概念验证。它还说这个项目只用于教育目的,不用于真实交易或投资,系统实际上不会进行任何交易。这些页面都在仓库的 main 分支上,读取于 2026 年 11 月 3 日。

许可证:MIT。LICENSE 文件(https://github.com/virattt/ai-hedge-fund/blob/main/LICENSE)写的是“MIT License”和“Copyright (c) 2024 Virat Singh”。

免责声明

README 的 Disclaimer 一节(https://github.com/virattt/ai-hedge-fund/blob/main/README.md)说这个项目只用于教育和研究目的,并列出:

  • 不用于真实交易或投资
  • 不提供投资建议,也不做任何保证
  • 作者不为经济损失承担责任
  • 做投资决定请咨询财务顾问
  • 过往业绩不代表未来结果

VISION.md(https://github.com/virattt/ai-hedge-fund/blob/main/VISION.md)补充说,这些投资者智能体是对知名投资者公开理念的风格化近似,并不是这些人本人,也不代表他们的背书。

会安装什么

事先需要准备

  • Python 3.11 或更高版本,以及 pipx、uv、pip 中的一个。
  • 一个 Financial Datasets API 密钥,或者(仅 main 分支,PyPI 上的 aihf 2.6.4 没有 x402 这个 extra)一个持有 USDC 的 Base 钱包,用 x402 按次付费,只有最近 365 天的数据,仅限非专业用途。见 setup/api-keys-and-models.md。
  • 给投资者智能体用的一个模型 API 密钥。见 setup/api-keys-and-models.md。

主要安装命令

pipx install aihf

然后在任何地方运行它:

aihf

来源:https://github.com/virattt/ai-hedge-fund/blob/main/README.md(“How to Install”)

各平台说明

README 和文档没有给出 Claude Code、Codex、Cursor 或其他编程智能体的步骤,也没有技能、插件或 MCP 服务器。它是一个终端应用,所以这些说明跟着作者记录的安装和运行方式走。

  • setup/install.md:pipx、uv 和 pip
  • setup/api-keys-and-models.md:数据密钥或 x402 钱包,以及模型服务商
  • setup/paper-trading-and-backtests.md:交互式应用和命令行
  • setup/from-source.md:用 Poetry 做的 git 检出,以及测试和贡献代码

更新或移除

README 没有给出更新或卸载步骤。请用你的安装工具自己的命令。应用的文件都在 ~/.hedge-fund/ 下:这个文件夹里有你保存的密钥和每只模拟盘基金的账本,删除之前先留好要保留的东西。

来源

  • README:https://github.com/virattt/ai-hedge-fund/blob/main/README.md
  • 引擎 README:https://github.com/virattt/ai-hedge-fund/blob/main/hedge_fund/README.md
  • Vision:https://github.com/virattt/ai-hedge-fund/blob/main/VISION.md
  • 路线图:https://github.com/virattt/ai-hedge-fund/blob/main/ROADMAP.md
  • 密钥模板:https://github.com/virattt/ai-hedge-fund/blob/main/.env.example
  • 示例 mandate:https://github.com/virattt/ai-hedge-fund/blob/main/hedge_fund/fund/example.yaml
  • 包文件:https://github.com/virattt/ai-hedge-fund/blob/main/pyproject.toml
  • PyPI:https://pypi.org/project/aihf/
  • Financial Datasets 的 x402 页面:https://docs.financialdatasets.ai/x402
文件
README.md  4 KB
setup/api-keys-and-models.md  3 KB
setup/from-source.md  2 KB
setup/install.md  1022 B
setup/paper-trading-and-backtests.md  4 KB

5 个文件,共 14 KB,以 zip 压缩包下载。

更新内容

  • 第 2 版 · 2026-11-09

    Updated by Mindket to the current version of this kit.

  • 第 1 版 · 2026-11-03

评价

还没有评分

写评价

还没有评价。

大家怎么说

Hacker News、Bluesky、X、Reddit、Facebook 和 YouTube 上提到这个项目的帖子和评论,来自每周一次的搜索和 Trendshift。它们不是 Mindket 写的,也未经核实,点开即可在原帖处阅读。

fdefitteAI Hedge Fund3 分Toby | AlphaMolt: Where Finance Bots CompeteWe gave @virattt's AI Hedge Fund a live paper book of US stocks. An AI Buffett, Graham and Munger debate every stock each week, and you can read every argument behind every position. It's live against our own agent teams 👇 www.alphamolt.ai/portfolios/v...1 赞 · 1 条回复@viratttAI Hedge Fund now protects its downside. If the portfolio drops 10%, it cuts every position in half. At 20%, it goes to cash. The risk controls are customizable, so you can cap beta, sector bets, and volatility. Stay safe out there, folks. https://t.co/S5MzMep2lLsimonpureAI-Hedge-Fund: An AI Hedge Fund Team3 分Tom Dörrhttps://github.com/virattt/ai-hedge-fund1 赞@cryptokokosikWALL STREET CHARGES 2 AND 20. THESE 5 GITHUB REPOS ARE FREE. 1. TradingAgents (112k ★): AI trading firm 2. ai-hedge-fund (64k ★): AI fund team 3. qlib (49k ★): Microsoft quant lab 4. Kronos (46k ★): market AI model 5. AI-Trader (23k ★): paper-trading agents Bookmark this. https://t.co/NoM8NDUgKBvortex_apeAn AI Hedge Fund Team3 分VritraSec • GitHub Feed🚀 GitHub Intelligence Drop ai-hedge-fund (Python • 🟢) ⭐ 63.3K → https://github.com/virattt/ai-hedge-fund socket.io (TypeScript • 🟢) ⭐ 63.2K → https://github.com/socketio/socket.io ⚡ Only signal. Zero noise.@bi_9527zx准备做Ai Agent自动交易的兄弟们一定要参考的免费开源软件: 加密货币交易机器人(主力) Freqtrade(约55k⭐):Python全功能Bot,回测+Hyperopt优化+FreqAI机器学习+Telegram/Web UI,支持多交易所(via CCXT)。目前最活跃、最完整的策略开发框架。 https://t.co/V9NOHBLuxl Hummingbot(约20k⭐):专注做市、跨所套利、资金费率套利,CEX+DEX覆盖广。 https://t.co/ELb07oWay4…mafroAI Hedge Fund2 分デイリーGitHubトレンド今日のGitHubトレンド virattt/ai-hedge-fund AIを活用したヘッジファンドの概念実証プロジェクトです。 AIを用いたトレード判断の可能性を探索することを目的としており、教育的な用途で提供されています。 著名な投資家の手法を模した複数のエージェントや、価値評価、市場心理分析を行うエージェントを連携させて運用します。 将来的には、バックテストやペーパートレードが可能な常時稼働型のシステムへの構築を目指しています。@Moon_Space__ai-hedge-fund 是探索用 AI 做交易决策的概念验证,仅供学习、不用于实盘。v2.6.0 可在纽约 04:00–20:00 按分钟 K 线再平衡做日内模拟盘,最短间隔从 10 秒改为 1 秒。独立按模型回测与事件研究已去掉,回测改走基金。https://t.co/OHzHjCOIjP https://t.co/wVrDW8BLPU

搜索日期

Mindket 的更多商品

查看 Mindket 的全部商品

DeepSeek-R1-GGUF

unsloth · 工具包

671B 参数 DeepSeek-R1 推理模型的 GGUF 版本,带 1.58-bit 和 2-bit 动态量化,可在内存足够的本机上用 llama.cpp 运行。

新上架

Axion-1.0-35B-GGUF

prithivMLmods · 工具包

提供 Axion-1.0-35B 的 GGUF 文件,这是一个有约 30 亿激活参数的 35B 混合专家模型,面向科学推理、信息查找和工具使用。适合配合 llama.cpp 在本地使用。

新上架

HEART

Phips · 工具包

用一个超分辨率网络放大低分辨率图像,可以在一块消费级 GPU 上训练,并导出为 ONNX。适合训练或运行图像放大模型的人。

新上架

财务类的相似商品

查看财务类的全部商品

Kronos-mini

NeoQuasar · 工具包

用一个 4.1M 参数、基于 45 多家交易所数据训练的基础模型来预测金融 K 线序列。适合想用小模型做价格预测实验的量化研究人员和开发者。

新上架

一个归档发票的 n8n 工作流。它盯着一个 Google Drive 文件夹,把每个新文件交给 LlamaParse 读取,再由 OpenAI 模型取出明细行,Airtable 里得到一条发票记录和每个明细行各一条记录。

新上架免费