8 #ifndef STOCKTYPEINFO_H_ 9 #define STOCKTYPEINFO_H_ 15 #define STOCKTYPE_BLOCK 0 17 #define STOCKTYPE_INDEX 2 19 #define STOCKTYPE_FUND 4 20 #define STOCKTYPE_ETF 5 21 #define STOCKTYPE_ND 6 22 #define STOCKTYPE_BOND 7 23 #define STOCKTYPE_GEM 8 24 #define STOCKTYPE_BTC 9 26 #define STOCKTYPE_TMP 999 64 string toString()
const;
73 size_t m_minTradeNumber;
74 size_t m_maxTradeNumber;
unsigned hku_uint32
Definition: DataType.h:48
证券类型信息
Definition: StockTypeInfo.h:32
int precision() const
获取价格精度
Definition: StockTypeInfo.h:55
size_t maxTradeNumber() const
获取每笔最大交易数量
Definition: StockTypeInfo.h:61
size_t minTradeNumber() const
获取每笔最小交易数量
Definition: StockTypeInfo.h:58
bool operator!=(const Datetime &, const Datetime &)
Definition: Datetime.h:205
#define HKU_API
Definition: DataType.h:12
price_t tick() const
获取最小跳动量
Definition: StockTypeInfo.h:46
HKU_API std::ostream & operator<<(std::ostream &os, const Block &blk)
Definition: Block.cpp:13
double price_t
Definition: DataType.h:53
bool operator==(const Datetime &, const Datetime &)
Definition: Datetime.h:201
Hikyuu核心命名空间,包含股票数据的管理、指标实现、交易系统框架等
Definition: Block.cpp:11
const string & description() const
获取证券类型描述信息
Definition: StockTypeInfo.h:43
price_t tickValue() const
每tick价格
Definition: StockTypeInfo.h:49
hku_uint32 type() const
获取证券类型
Definition: StockTypeInfo.h:40
price_t unit() const
每单位价格 = tickValue / tick
Definition: StockTypeInfo.h:52