# 4. 交易执行与组合管理

> 第 4 章，共 10 章 · 29 条 · 网页版: https://finance-agents.dev/zh/chapters/4-trading-execution-and-portfolio-management

从信号到订单：仓位、风险预算、券商/交易所连接，以及组合分析。更完整的交易向清单见附录中的 LLMQuant/awesome-trading-agents。

## LLM 交易 agent

- [daily_stock_analysis](https://github.com/ZhuLinsen/daily_stock_analysis) - 🇨🇳 多市场 LLM 股票分析，带看板与告警。
- [Vibe-Trading](https://github.com/HKUDS/Vibe-Trading) - HKUDS 的个人交易 agent 栈。(sim)
- [AI-Trader](https://github.com/HKUDS/AI-Trader) - 面向 agent 的自动化交易研究系统。
- [nofx](https://github.com/NoFxAiOS/nofx) - 覆盖美股、商品、外汇与加密的 AI 交易终端助手。(sim/live)
- [OpenAlice](https://github.com/TraderAlice/OpenAlice) - 一人华尔街风格的多资产 AI 交易 agent。
- [AgenticTrading](https://github.com/Open-Finance-Lab/AgenticTrading) - 与评测 harness 配套的 agent 交易研究代码。
- [FinRL-Trading](https://github.com/AI4Finance-Foundation/FinRL-Trading) - AI 原生的模块化量化交易基础设施（FinRL-X）。
- [FinMem-LLM-StockTrading](https://github.com/pipiku915/FinMem-LLM-StockTrading) - FinMem 系列的分层记忆 LLM 交易 agent。(paper)
- [jev-trade](https://github.com/aowang-ai/jev-trade) - 模型驱动的 Hyperliquid 交易机器人：五个币种独立钱包，每个 tick 决策一次，带实时看板与 dry-run 模式。(sim/live)
- [QuantDinger](https://github.com/OpenByteInc/QuantDinger) - 可自托管的 AI 交易系统：agent 与自然语言建策略、回测、券商/交易所执行。(sim/live)
- [OctoBot](https://github.com/Drakkar-Software/OctoBot) - 开源加密交易机器人，除网格、定投与 TradingView 信号外还有 AI/LLM 策略模式。(sim/live)
- [Hyper-Alpha-Arena](https://github.com/HammerGPT/Hyper-Alpha-Arena) - 面向 Hyperliquid 与币安合约的 AI 交易平台，策略由模型驱动。(sim/live)
- [MAHORAGA](https://github.com/ygwyg/MAHORAGA) - 由社交情绪分析驱动的自主交易 agent。(sim/live)
- [nof1.ai](https://github.com/195440/nof1.ai) - nof1.ai 自主 LLM 交易 agent 的开源复刻。(sim/live)
- [OpenTrade](https://github.com/OpenTradeOSS/OpenTrade) - macOS 应用，让 Claude Code/Codex 经 Robinhood 官方 MCP 交易，带审批与限额。(live)
- [hummingbot/condor](https://github.com/hummingbot/condor) - Hummingbot 官方的 Telegram 控制端，经 Hummingbot API 监控与运行 AI 交易 agent。(live)

## 预测市场 agent

- [polymarket-mcp-server](https://github.com/caiovicentino/polymarket-mcp-server) - Polymarket 预测市场 MCP，带监控与安全特性。(sim/live)
- [CloddsBot](https://github.com/alsk1992/CloddsBot) - 跨 Polymarket、Kalshi 与加密交易所的自主 AI 交易 agent。(sim/live)
- [pmxt](https://github.com/pmxt-dev/pmxt) - 统一 API，交易 Polymarket、Kalshi 等预测市场。(live)
- [Polyseer](https://github.com/yorkeccak/Polyseer) - 针对 Polymarket/Kalshi 问题的多 agent 深度研究，证据加权并输出带引用报告。
- [kalshi-ai-trading-bot](https://github.com/ryanfrigo/kalshi-ai-trading-bot) - Kalshi 预测市场 AI 策略工具包。(sim/live)
- [kalshi-trading-bot-cli](https://github.com/OctagonAI/kalshi-trading-bot-cli) - Kalshi 交易 CLI：研究市场、估算概率并下单。(sim/live)

## 券商桥与执行底座

- [alpaca-py](https://github.com/alpacahq/alpaca-py) - Alpaca 官方 Python SDK，常作 agent 模拟/实盘后端。(sim/live)
- [freqtrade](https://github.com/freqtrade/freqtrade) - 常用的加密交易机器人，也常被当作 agent 执行后端。(sim/live)
- [hummingbot](https://github.com/hummingbot/hummingbot) - 开源加密做市与执行框架。(live)
- [tradememory-protocol](https://github.com/mnemox-ai/tradememory-protocol) - 面向 AI 交易 agent 的决策审计轨迹与记忆协议。
- [ccxt](https://github.com/ccxt/ccxt) - 统一 100+ 加密交易所的 API，常作为加密 agent 的执行层。(live)
- [easytrader](https://github.com/shidenggui/easytrader) - 🇨🇳 同花顺、miniQMT、雪球的 A 股交易自动化，可作 agent 执行层。(live)
- [fintool](https://github.com/second-state/fintool) - 面向 agent 交易与市场情报的 Rust CLI 套件，每个交易所一个二进制。(live)

## 踩坑提示

模拟盘和实盘要分开。永远不要给 agent 无上限的实盘下单权限。在相信收益截图之前，先建模手续费、滑点和停牌规则。

---

不构成投资建议；收录不代表推荐。 CC0 1.0 · https://github.com/aowang-ai/awesome-finance-agents

由 Ao Wang（王奥，https://aowang.ai）维护。
