全局变量与常量定义¶
Null 值及证券类别¶
-
hikyuu.
constant
¶ 全局常量,
Constant
的实例,用于判断相关的 null 值及股票类型,如:a = Datetime(201601010000) if (a == constant.null_datetime ): print(True)
-
class
hikyuu.
Constant
¶ -
null_datetime 无效Datetime
-
inf
¶
-
nan
¶
-
null_price 同 nan
-
null_int 无效int
-
null_size 无效size
-
null_int64 无效int64
-
pickle_support 是否支持 pickle
-
STOCKTYPE_BLOCK 股票类型-板块
-
STOCKTYPE_A 股票类型-A股
-
STOCKTYPE_INDEX 股票类型-指数
-
STOCKTYPE_B 股票类型-B股
-
STOCKTYPE_FUND 股票类型-基金
-
STOCKTYPE_ETF 股票类型-ETF
-
STOCKTYPE_ND 股票类型-国债
-
STOCKTYPE_BOND 股票类型-其他债券
-
STOCKTYPE_GEM 股票类型-创业板
-
STOCKTYPE_START 股票类型-创业板
-
STOCKTYPE_TMP 股票类型-临时CSV
-