From 893d8d21ac6d1967b2ac888bb8bcf653e147df28 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Mon, 21 May 2018 12:06:12 +0800 Subject: [PATCH] [Fix]Close #881 --- examples/WebTrader/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/WebTrader/run.py b/examples/WebTrader/run.py index c9de39e3..742ca5c3 100644 --- a/examples/WebTrader/run.py +++ b/examples/WebTrader/run.py @@ -36,7 +36,7 @@ if __name__ == '__main__': currentTime = dt.time() - if currentTime >= START_TIME and currentTime <= CLOSE_TIME: + if currentTime >= START_TIME or currentTime <= CLOSE_TIME: le.info(u'当前处于交易时间段') if not pTrading: