init update

This commit is contained in:
tianyufan
2025-10-24 00:35:21 +08:00
commit df5c25c98d
205 changed files with 81998 additions and 0 deletions

34
main.sh Normal file
View File

@@ -0,0 +1,34 @@
#!/bin/bash
# AI-Trader 主启动脚本
# 用于启动完整的交易环境
set -e # 遇到错误时退出
echo "🚀 Launching AI Trader Environment..."
echo "📊 Now getting and merging price data..."
cd ./data
python get_daily_price.py
python merge_jsonl.py
cd ../
echo "🔧 Now starting MCP services..."
cd ./agent_tools
python start_mcp_services.py
cd ../
#waiting for MCP services to start
sleep 2
echo "🤖 Now starting the main trading agent..."
python main.py configs/default_config.json
echo "✅ AI-Trader stopped"
echo "🔄 Starting web server..."
cd ./docs
python3 -m http.server 8888
echo "✅ Web server started"