18 lines
386 B
Python
Executable File
18 lines
386 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
自动化回测服务启动脚本
|
|
启动 FastAPI 服务,监听 8088 端口,接受回测任务提交
|
|
"""
|
|
import sys
|
|
import os
|
|
|
|
# 添加 backtest-service 到 sys.path
|
|
backtest_dir = os.path.join(os.path.dirname(__file__), "backtest-service")
|
|
sys.path.insert(0, backtest_dir)
|
|
|
|
# 现在导入 main
|
|
from main import main
|
|
|
|
if __name__ == "__main__":
|
|
main()
|