Automate financial trading strategies using AI agents
A

Automate financial trading strategies using AI agents

Automate financial trading strategies using AI agents

90,079 stars
N/A forks
N/A contributors

README

Project documentation from GitHub

Automate Your Trading Strategy with AI Agents

Ever thought about building an automated trading system, but got lost in the weeds of data pipelines, API integrations, and strategy backtesting? What if you could describe your trading logic in plain language and have an AI agent handle the execution? That’s the intriguing premise behind the TradingAgents project.

It’s a developer-focused toolkit that uses large language models (LLMs) to power autonomous trading agents. Instead of writing thousands of lines of rigid code for a single strategy, you can define agents with specific goals, risk parameters, and market access, and let them operate within a sandboxed environment. It’s like giving a strategic brief to a very logical, code-savvy assistant.

What It Does

TradingAgents is an open-source framework for creating and managing AI-powered trading agents. At its core, it uses LLMs (like OpenAI's GPT models) to interpret high-level trading instructions, make reasoned decisions based on market data, and execute trades through broker APIs—all while logging its actions and reasoning for transparency.

You define an agent with a configuration that includes its objective (e.g., "arbitrage between Exchange A and B"), allocated capital, risk tolerance, and the data sources or exchanges it can access. The framework then sets up the necessary infrastructure for the agent to run, observe the market, make decisions, and act.

Why It's Cool

The clever part is the abstraction. The project isn't just another algorithmic trading bot with hard-coded rules. It separates the strategy logic (handled by the LLM's reasoning) from the execution plumbing (handled by the framework's modules for data, brokerage, and state management).

This means you can rapidly prototype ideas. Want to test a mean-reversion strategy on crypto futures? Or a news-based sentiment play on equities? You can spin up different agents with different sets of instructions without rewriting your entire trading stack. The framework also emphasizes safety and oversight, running agents in a controlled loop where their proposed actions can be monitored or validated before execution.

It’s a fascinating experiment in applying agentic AI to a complex, real-world domain. It turns the LLM from a text generator into a decision-making engine within a well-defined action space (buy, sell, hold, adjust parameters).

How to Try It

Ready to experiment? The code is live on GitHub.

  1. Clone the repo:

    git clone https://github.com/TauricResearch/TradingAgents.git
    cd TradingAgents
    
  2. Set up your environment: You'll need Python and to install the dependencies. Check the requirements.txt in the repo. Crucially, you'll need to configure API keys for both your

Did you like this issue?

Join our weekly newsletter

Love discovering amazing projects?

Help us continue bringing you the best open-source discoveries every week.

Back to Projects
Last updated: Dec 28, 2025