ai-trader

ai-trader

An algorithmic trading backtesting framework based on Backtrader, supporting over 20 strategies, multiple markets, and MCP server.

MCPBusinessOpen source
Type
MCP
Transport
stdio
Open source
Yes
GitHub Stars
★ 1.0k
Source
mcp-github

Overview

ai-trader is a professional, configuration-driven algorithmic trading backtesting framework built on Backtrader. It supports strategy testing, optimization, and integration across stock, cryptocurrency, and forex markets. The built-in MCP server enables AI assistants like Claude to run backtests, retrieve data, and analyze strategies. Suitable for professional traders and developers. Can be installed via pip or from source code, and quickly launched and configured using CLI tools.

Capabilities

  • Supports over 20 built-in trading strategies
  • Multi-market support (stocks, cryptocurrencies, forex)
  • Configuration-driven workflow
  • Seamless integration with large language models
  • Powerful CLI tools
  • Easy creation and testing of custom strategies

Use cases

Algorithmic trading strategy backtestingMulti-market data analysisStrategy analysis integrated with AI assistantsCustom strategy development and testing

Setup

Requires: Python 3.11+API Key
pip install ai-trader or git clone https://github.com/whchien/ai-trader.git and install dependencies

This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.

FAQ

How do I get started with ai-trader?

After installation, run backtests using CLI commands such as `ai-trader run`.

Which markets are supported?

Supports U.S. stocks, Taiwan stocks, cryptocurrencies, and forex markets.

How do I integrate with an AI assistant?

Start the MCP server and configure Claude Desktop.

Related skills