Merge pull request #2200 from vnpy/dev

Dev
This commit is contained in:
vn.py 2019-11-15 12:41:39 +09:00 committed by GitHub
commit ca4bb9aa31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -36,7 +36,7 @@ from vnpy.gateway.bybit import BybitGateway
# from vnpy.app.cta_strategy import CtaStrategyApp
# from vnpy.app.csv_loader import CsvLoaderApp
# from vnpy.app.algo_trading import AlgoTradingApp
# from vnpy.app.cta_backtester import CtaBacktesterApp
from vnpy.app.cta_backtester import CtaBacktesterApp
# from vnpy.app.data_recorder import DataRecorderApp
# from vnpy.app.risk_manager import RiskManagerApp
# from vnpy.app.script_trader import ScriptTraderApp
@ -83,7 +83,7 @@ def main():
main_engine.add_gateway(BybitGateway)
# main_engine.add_app(CtaStrategyApp)
# main_engine.add_app(CtaBacktesterApp)
main_engine.add_app(CtaBacktesterApp)
# main_engine.add_app(CsvLoaderApp)
# main_engine.add_app(AlgoTradingApp)
# main_engine.add_app(DataRecorderApp)

View File

@ -9,6 +9,7 @@ pymysql
psycopg2
mongoengine
numpy
pandas==0.24.2
matplotlib
seaborn
futu-api

View File

@ -532,8 +532,9 @@ class BybitRestApi(RestClient):
else:
data = resp.json()
ret_msg = data["ret_msg"]
if ret_msg != "ok":
ret_code = data["ret_code"]
if ret_code:
ret_msg = data["ret_msg"]
msg = f"获取历史数据出错,错误信息:{ret_msg}"
self.gateway.write_log(msg)
break