auto_trade_sys/trading_system/README.md
薇薇安 8a89592cb5 a
2026-01-13 17:30:59 +08:00

57 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 交易系统 (Trading System)
币安自动交易系统核心模块
## 目录结构
```
trading_system/
├── __init__.py
├── main.py # 主程序入口
├── config.py # 配置文件
├── binance_client.py # 币安客户端
├── market_scanner.py # 市场扫描器
├── risk_manager.py # 风险管理
├── position_manager.py # 仓位管理
├── strategy.py # 交易策略
├── indicators.py # 技术指标
├── unicorn_websocket.py # Unicorn WebSocket
└── requirements.txt # 依赖
```
## 功能
- 自动市场扫描1小时主周期
- 技术指标分析RSI、MACD、布林带等
- 高胜率交易策略(均值回归+趋势跟踪)
- 严格风险控制
- 动态止损止盈
- 数据库集成(记录交易数据)
## 运行
### 方式1从项目根目录运行
```bash
python main.py
```
### 方式2直接运行
```bash
cd trading_system
python main.py
```
## 配置
配置优先从数据库读取,回退到环境变量和默认值。
配置文件:`config.py`
## 依赖
```bash
pip install -r requirements.txt
```