mirror of
https://github.com/Xe138/AI-Trader.git
synced 2026-04-01 17:17:24 -04:00
init update
This commit is contained in:
34
main.sh
Normal file
34
main.sh
Normal 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"
|
||||
Reference in New Issue
Block a user