From 20211e26d77704b697b5e9af805097bdef8b5fcd Mon Sep 17 00:00:00 2001 From: yutiansut Date: Sun, 14 Oct 2018 20:11:47 +0800 Subject: [PATCH] #command handler --- QUANTAXIS/QAWeb/QA_Web.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/QUANTAXIS/QAWeb/QA_Web.py b/QUANTAXIS/QAWeb/QA_Web.py index 4c0dca4c8..faf6abc25 100755 --- a/QUANTAXIS/QAWeb/QA_Web.py +++ b/QUANTAXIS/QAWeb/QA_Web.py @@ -33,6 +33,7 @@ from QUANTAXIS.QAWeb.arphandles import AccountHandler, RiskHandler, MemberHandler from QUANTAXIS.QAWeb.strategyhandlers import StrategyHandler, BacktestHandler from QUANTAXIS.QAWeb.tradehandles import AccModelHandler +from QUANTAXIS.QAWeb.commandhandler import CommandHandler class INDEX(QABaseHandler): @@ -60,7 +61,8 @@ def main(): (r"/monitor", MonitorSocketHandler), (r"/accounts", AccountHandler), (r"/accounts/all", MemberHandler), - (r"/risk", RiskHandler) + (r"/risk", RiskHandler), + (r"/command/run", CommandHandler) ], debug=True )