登录 注册

ai-hedge-fund

去点 Star
其他
64,650
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Python
语言
—
创建时间
最近更新

项目能做什么

基于 AI 的对冲基金团队模拟项目。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# 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.

<img width="2400" height="1460" alt="image" src="https://github.com/user-attachments/assets/e3985623-c226-4c1a-a587-e03fb4eca31e" />


Note: the system does not actually make any trades.

[![Twitter Follow](https://img.shields.io/twitter/follow/virattt?style=social)](https://twitter.com/virattt)

## 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

```bash
pipx install aihf
```

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

Then run it from anywhere:

```bash
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](https://financialdatasets.ai) API key, for prices, fundamentals, and earnings. Or, instead of a key, the private key of a Base wallet holding USDC: every call then pays for itself with [x402](https://docs.financialdatasets.ai/x402) (`pip install 'aihf[x402]'`; last 365 days of data, non-professional use).
- 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

```bash
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

```bash
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 featur
阅读完整原文

项目深度分析 AI 生成

云端多智能体投研与模拟交易 SaaS (WebUI)

产品构想将 CLI 交互模式包装为现代化的 Web SaaS,内置多模型 API 代理和金融数据,用户无需配置终端即可创建基金、配置 Agent 并运行模拟交易与回测。
核心功能一键部署基金、可视化多智能体对话与决策流、历史回测对比走势图、模拟盘实时盈亏面板、每日调仓研报邮件推送
目标用户不熟悉命令行工具的美股零售投资者、投研爱好者
难度/周期中等 · 4-6 周 · 成本:中等(全栈 Web 开发、Serverless 后端、模型与金融数据 API 转售调用成本)
收费模式月度/年度订阅制(分阶梯限制调用次数、监控标的数量、历史回测范围)
竞争风险合规与免责风险(需严格限制为虚拟投研/模拟盘);LLM API 与金融数据调用成本高昂易被薅羊毛
依据 已验证事实(原项目仅提供 CLI 和 TUI 交互,自带 backtesting/paper trading 概念)

定制化投资风格 Agent 市场与策略模板库

产品构想基于原项目支持的多模型与 Agent 架构,开发并售卖特定投资大师风格(如巴菲特价值型、西蒙斯量化型、索罗斯宏观对冲型)的 Prompt/配置包与知识库插件。
核心功能预调优的投资决策 Agent 配置文件、特定策略回测表现数据集、研报抓取解析插件、社区策略分享与导入功能
目标用户深度量化爱好者、自研量化交易者、投研分析师
难度/周期低 · 2-3 周 · 成本:低(静态资源与策略设计、提示词工程与基准测试)
收费模式数字商品单次购买或会员订阅(Gumroad / 独立站下载)
竞争风险提示词易被泄露与复制;策略失效导致用户流失
依据 已验证事实(原项目支持 strategies, mandates, investor agents 概念)

券商实盘交易网关与风控中间件

产品构想桥接该项目的决策输出与实盘券商(如 Interactive Brokers, Alpaca 等),提供从信号生成、人机协同确认(Human-in-the-loop)到最终下单的自动化流程工具。
核心功能券商 API 桥接适配器、风险控制拦截网(单笔上限/止损熔断)、多渠道确认通知(Telegram/Webhook 一键授权交易)、详细审计日志
目标用户高阶量化交易员、技术型高净值散户
难度/周期高 · 8-12 周 · 成本:中等(需维护实盘接口、极高安全性要求、高可用基础设施)
收费模式私有化部署买断许可 + 高级技术支持年费,或按交易量收取微额技术服务费
竞争风险金融监管合规法律风险(如无牌投顾/代客理财质疑);实盘亏损引发的用户纠纷风险
依据 推测(原项目明确注明 'does not actually make any trades' 且仅供教育研究,实盘自动化是高阶用户自然延伸诉求)
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建时间待补全,最近推送 ,发布过 24 个 Release
社区活跃Star 64,650 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。