# X-Trader **Repository Path**: quant_lab/x-trader ## Basic Information - **Project Name**: X-Trader - **Description**: X-Trader 是一个基于C++ 的,适应全市场全品种交易的跨平台的极简量化交易框架,X-Trader 支持用户使用C++ 构建各种类型的日内量化交易策略, 并提供包含实时数据-开发调试-模拟交易-实盘交易-运行监控-风险管理的一站式解决方案。 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 10 - **Forks**: 11 - **Created**: 2026-01-02 - **Last Updated**: 2026-09-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # X-Trader This is a trading system framework based on the CTP API, supporting multiple trading strategies and market data processing functionalities. The system is designed with modularity to facilitate extension and maintenance. ## Features - Supports multiple trading strategies: including market-making, statistical arbitrage, order flow strategies, and more - Supports market data subscription and processing - Provides order management and execution functionality - Supports strategy backtesting and live trading - Cross-platform support (Windows and Linux) ## Directory Structure - `api/` - CTP API header and library files - `bin/` - Configuration files directory - `src/` - Source code directory - `framework/` - Core framework code - `strategy/` - Trading strategy implementations - `trade-core/` - Trading core module - `utils/` - Utility classes ## Usage 1. Configure the CTP API environment 2. Modify configuration files to match your trading account details 3. Select or implement the desired trading strategy 4. Compile and run the system ## Strategy Examples The system includes several pre-implemented strategies: - `decline_scalping` - Decline scalping strategy - `high_low` - High-low strategy - `market_correction` - Market correction strategy - `statistical_arbitrage` - Statistical arbitrage strategy ## Developer Guide To add a new strategy, inherit the `strategy` base class and implement corresponding event handlers such as `on_tick()`, `on_bar()`, `on_order()`, etc. ## License This project is licensed under the Apache-2.0 license.