vnpy/prod/stock_gj/run_es_restful_server.py

13 lines
324 B
Python
Raw Permalink Normal View History

# flake8: noqa
import os
import sys
# 将repostory的目录i作为根目录添加到系统环境中。
ROOT_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))
sys.path.append(ROOT_PATH)
print(f'append {ROOT_PATH} into sys.path')
from vnpy.api.easytrader import server
server.run(port=1430)