From fe3b16c1b279e3566cada5ef566c286fb6ab2f6f Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Tue, 25 Sep 2018 10:35:46 +0800 Subject: [PATCH] =?UTF-8?q?[Add]=E6=B7=BB=E5=8A=A0VtBarData=E7=9A=84K?= =?UTF-8?q?=E7=BA=BF=E5=91=A8=E6=9C=9F=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/vtObject.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vnpy/trader/vtObject.py b/vnpy/trader/vtObject.py index 966be5fe..d7a1d384 100644 --- a/vnpy/trader/vtObject.py +++ b/vnpy/trader/vtObject.py @@ -99,7 +99,8 @@ class VtBarData(VtBaseData): self.datetime = None # python的datetime时间对象 self.volume = EMPTY_INT # 成交量 - self.openInterest = EMPTY_INT # 持仓量 + self.openInterest = EMPTY_INT # 持仓量 + self.interval = EMPTY_UNICODE # K线周期 ########################################################################