[增强] 增加交易日

This commit is contained in:
msincenselee 2019-11-30 10:43:48 +08:00
parent da0e116e16
commit 76eda2f7b2

View File

@ -33,6 +33,9 @@ class TickData(BaseData):
symbol: str symbol: str
exchange: Exchange exchange: Exchange
datetime: datetime datetime: datetime
date: str = "" # '%Y-%m-%d'
time: str = "" # '%H:%M:%S.%f'
trading_day: str = "" # '%Y-%m-%d'
name: str = "" name: str = ""
volume: float = 0 volume: float = 0
@ -84,9 +87,10 @@ class BarData(BaseData):
symbol: str symbol: str
exchange: Exchange 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 volume: float = 0
open_interest: float = 0 open_interest: float = 0
open_price: float = 0 open_price: float = 0