From 76eda2f7b262eba400b2fa57d47e4bdd0df62ae3 Mon Sep 17 00:00:00 2001 From: msincenselee Date: Sat, 30 Nov 2019 10:43:48 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=A2=9E=E5=BC=BA]=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E4=BA=A4=E6=98=93=E6=97=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/object.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vnpy/trader/object.py b/vnpy/trader/object.py index fd6c8bf6..42d25387 100644 --- a/vnpy/trader/object.py +++ b/vnpy/trader/object.py @@ -33,6 +33,9 @@ class TickData(BaseData): symbol: str exchange: Exchange datetime: datetime + date: str = "" # '%Y-%m-%d' + time: str = "" # '%H:%M:%S.%f' + trading_day: str = "" # '%Y-%m-%d' name: str = "" volume: float = 0 @@ -84,9 +87,10 @@ class BarData(BaseData): symbol: str exchange: Exchange - datetime: datetime + datetime: datetime # bar的开始时间 + trading_day: str = "" # '%Y-%m-%d' - interval: Interval = None + interval: Interval = None # constant.py Internal 1m, 1h, 1d, 1w .etc volume: float = 0 open_interest: float = 0 open_price: float = 0