From 81454e7dfb86c73d2270f5eeaee373fb4a57ec14 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Fri, 5 Apr 2019 11:08:31 +0800 Subject: [PATCH] [Fix]Close #1551 --- vnpy/app/cta_strategy/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/app/cta_strategy/engine.py b/vnpy/app/cta_strategy/engine.py index cb29a652..9bff635b 100644 --- a/vnpy/app/cta_strategy/engine.py +++ b/vnpy/app/cta_strategy/engine.py @@ -541,7 +541,7 @@ class CtaEngine(BaseEngine): DbBarData.select() .where( (DbBarData.vt_symbol == vt_symbol) - & (DbBarData.interval == interval) + & (DbBarData.interval == interval.value) & (DbBarData.datetime >= start) & (DbBarData.datetime <= end) )