ai-agent
TradingAgents-CN
基于多智能体LLM的中文金融交易框架 - TradingAgents中文增强版
31,143 stars6,555 forksPythonUpdated 7/24/2026100% free · open source
What it does
TradingAgents-CN is a Chinese financial trading framework based on multi-agent LLM, allowing users to build and deploy AI-powered trading agents for financial markets.
Install / run
pip install -r requirements.txtWhen to use it
- •When you need to automate trading decisions in Chinese financial markets
- •When you want to leverage LLM models for financial forecasting and trading
- •When you require a customizable framework for backtesting and evaluating trading strategies
Quick start
- 1Clone the repository using `git clone https://github.com/hsliuping/TradingAgents-CN.git`
- 2Create a new trading agent by modifying the `agents` directory and adding your own trading logic
- 3Configure the `config.yml` file to specify your trading environment and parameters
- 4Run the framework using `python main.py` to start the trading simulation
- 5Monitor and analyze the trading performance using the built-in visualization tools
Ready-to-paste prompt
python main.py --agent MyAgent --market SZSE --start-date 2022-01-01 --end-date 2022-12-31
Heads up: Make sure you have the necessary dependencies installed, including `tensorflow` and `pandas`, and that your Python version is compatible with the framework (Python 3.8+ recommended)
Saves to your device
How TradingAgents-CN works
Codeflow
Free to inspect
TradingAgents-CN is a very large Python project (~238k lines across 940 code files, plus 316 test files). Setup is light: installs like a normal app — add your API keys. Reading the code is optional. Last commit a month ago, Other license, has a test suite.
Size
Very large codebase
~238k lines · 940 code files · days to read — use, don't read
Setup
One-command install
Installs like a normal app — add your API keys. Reading the code is optional.
Runs on
Python · Docker
Needs API keys (.env)
Python 82%Vue 10%PowerShell 4%TypeScript 2%Shell 1%
Where to start reading
- 1README.mdStart here — what it does and how to install it
- 2main.pyWhere the program starts running
- 3pyproject.tomlDependencies and the commands it exposes
- 4.env.exampleThe API keys and settings you must provide
- 5app/__init__.pyInside app/ — the main logic begins here
What's in each folder
READMEHas testsDocumentedCI checksDocker readyExamples includedOther licenseUpdated 1 mo ago
Details
Creator
hsliuping
Language
Python
Category
ai-agent
Published
6/26/2025
Are you the creator of this tool? Claim your listing → and earn 85% of every sale.
Related skills
More ai-agent tools founders pair with this one.
ai-agent★ 276,436
Track GitHub Stars with 996.ICU
Get a popular GitHub star counter for your startup, backed by 276k+ GitHub stars, ideal for founders.
ai-agent★ 264,191
Superpowers
An agentic skills framework & software development methodology that works.
ai-agent★ 244,424
Linux: Open Source Kernel
Get the Linux kernel source tree for custom development, ideal for startup founders in need of a flexible OS foundation with 236k+ GitHub stars
ai-agent★ 204,069
Improve Code with andrej-karpathy-skills
Get better code behavior with andrej-karpathy-skills, 165k+ GitHub stars, for founders using LLMs.
ai-agent★ 189,101
Simplify Zsh with ohmyzsh
Get a customizable terminal experience with ohmyzsh, perfect for startup founders, backed by 188k+ GitHub stars.
ai-agent★ 187,262
FreeDomain: Free Website Domain
Get a free domain with FreeDomain. For startup founders.