[增强] 增加交易日
This commit is contained in:
parent
da0e116e16
commit
76eda2f7b2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user