This commit is contained in:
vn.py 2019-04-05 11:08:31 +08:00
parent 20f8032707
commit 81454e7dfb

View File

@ -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)
)