QTrade/scripts/start_all.bat

46 lines
1.3 KiB
Batchfile
Raw Normal View History

@echo off
REM QTrade 服务启动脚本
REM 启动所有微服务
echo ========================================
echo QTrade 量化交易系统
echo ========================================
echo.
cd /d %~dp0\..
echo 启动 Gateway (8001)...
start "Gateway" cmd /k "python -m src.main gateway"
timeout /t 2 /nobreak > nul
echo 启动 Core Service (8010)...
start "Core Service" cmd /k "python -m src.main core_service"
timeout /t 2 /nobreak > nul
echo 启动 Data Service (8020)...
start "Data Service" cmd /k "python -m src.main data_service"
timeout /t 2 /nobreak > nul
echo 启动 Strategy Engine (8030)...
start "Strategy Engine" cmd /k "python -m src.main strategy_engine"
timeout /t 2 /nobreak > nul
echo 启动 QMT Adapter (8040)...
start "QMT Adapter" cmd /k "python -m src.main qmt_adapter"
timeout /t 2 /nobreak > nul
echo.
echo ========================================
echo 所有服务已启动!
echo ========================================
echo.
echo 服务列表:
echo - Gateway: http://localhost:8001
echo - Core Service: http://localhost:8010
echo - Data Service: http://localhost:8020
echo - Strategy Engine: http://localhost:8030
echo - QMT Adapter: http://localhost:8040
echo.
echo 按任意键关闭此窗口...
pause > nul