You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tigeropen/common/consts/__init__.py
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -34,9 +34,16 @@ class TradingSession(Enum):
34
34
PreMarket='PreMarket'# 盘前
35
35
Regular='Regular'# 盘中
36
36
AfterHours='AfterHours'# 盘后
37
-
OverNight='OverNight'# 夜盘
37
+
OverNight='OverNight'
38
38
39
39
40
+
@unique
41
+
classTradingSessionType(Enum):
42
+
PRE_RTH_POST='PRE_RTH_POST'
43
+
OVERNIGHT='OVERNIGHT'# 夜盘
44
+
RTH='RTH'# 盘中
45
+
FULL='FULL'# 全时段
46
+
40
47
41
48
@unique
42
49
classSecurityType(Enum):
@@ -239,3 +246,11 @@ class OptionRankingIndicator(Enum):
239
246
Volume="volume"
240
247
Amount="amount"
241
248
OpenInt="openInt"
249
+
250
+
classAssetQuoteType(Enum):
251
+
# Includes pre-market, intra-day, and after-hours trading data. For night session, the closing price of the previous after-hours trading is used for calculation.
252
+
ETH="ETH"
253
+
# Only intra-day trading data. For pre-market, after-hours, and night session, the intra-day closing price is used for calculation.
254
+
RTH="RTH"
255
+
# Includes night session trading data. For night session, the night session trading data is used for calculation.
0 commit comments