mirror of
https://github.com/Xe138/AI-Trader.git
synced 2026-04-01 17:17:24 -04:00
Update all shell scripts to use the new AI-Trader-Server naming throughout. Changes: - main.sh: Update comments and echo statements - entrypoint.sh: Update startup message - scripts/validate_docker_build.sh: Update title, container name references, and docker image tag from ai-trader-test to ai-trader-server-test - scripts/test_api_endpoints.sh: Update title and docker-compose command Part of Phase 4: Internal Configuration & Metadata (Task 19)
34 lines
723 B
Bash
34 lines
723 B
Bash
#!/bin/bash
|
|
|
|
# AI-Trader-Server 主启动脚本
|
|
# 用于启动完整的交易环境
|
|
|
|
set -e # 遇到错误时退出
|
|
|
|
echo "🚀 Launching AI-Trader-Server Environment..."
|
|
|
|
|
|
echo "📊 Now getting and merging price data..."
|
|
cd ./data
|
|
# Note: get_daily_price.py now automatically calls merge_jsonl.py after fetching
|
|
python get_daily_price.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-Server stopped"
|
|
|
|
echo "🔄 Starting web server..."
|
|
cd ./docs
|
|
python3 -m http.server 8888
|
|
|
|
echo "✅ Web server started" |