Hikyuu
|
证券管理类、证券类等 更多...
类 | |
class | hku::Block |
板块类,可视为证券的容器 更多... | |
class | hku::KData |
K线数据 更多... | |
class | hku::KQuery |
按索引方式查询K线数据条件 更多... | |
class | hku::Null< KQuery > |
提供KQuery的Null值 更多... | |
class | hku::KRecord |
K线数据记录 更多... | |
class | hku::MarketInfo |
市场信息记录 更多... | |
struct | hku::Stock |
Stock基类,Application中一般使用StockPtr进行操作 更多... | |
class | hku::StockManager |
证券信息统一管理类 更多... | |
class | hku::StockTypeInfo |
证券类型信息 更多... | |
class | hku::StockWeight |
权息数据结构 更多... | |
class | hku::TimeLineRecord |
分时线记录 更多... | |
class | hku::TransRecord |
分笔成交记录 更多... | |
类型定义 | |
typedef vector< Block > | hku::BlockList |
typedef vector< KRecord > | hku::KRecordList |
typedef shared_ptr< KRecordList > | hku::KRecordListPtr |
typedef vector< Stock > | hku::StockList |
typedef vector< StockWeight > | hku::StockWeightList |
typedef vector< TimeLineRecord > | hku::TimeLineList |
分时线 更多... | |
typedef shared_ptr< TimeLineList > | hku::TimeLineListPtr |
typedef vector< TransRecord > | hku::TransList |
分时线 更多... | |
typedef shared_ptr< TransList > | hku::TransListPtr |
函数 | |
void | hku::hikyuu_init (const string &config_file_name) |
Hikyuu核心初始化,客户端必须在程序入口处调用 更多... | |
HKU_API std::ostream & | hku::operator<< (std::ostream &os, const KData &kdata) |
输出KData信息 更多... | |
KQuery | hku::KQueryByIndex (hku_int64 start=0, hku_int64 end=Null< hku_int64 >(), KQuery::KType dataType=KQuery::DAY, KQuery::RecoverType recoverType=KQuery::NO_RECOVER) |
构造按索引方式K线查询,范围[start, end) 更多... | |
KQuery | hku::KQueryByDate (const Datetime &start=Datetime::min(), const Datetime &end=Null< Datetime >(), KQuery::KType dataType=KQuery::DAY, KQuery::RecoverType recoverType=KQuery::NO_RECOVER) |
构造按日期方式K线查询,范围[startDatetime, endDatetime) 更多... | |
HKU_API std::ostream & | hku::operator<< (std::ostream &os, const KQuery &query) |
输出KQuery信息,如:KQuery(start, end, queryType, kType, recoverType) 更多... | |
HKU_API std::ostream & | hku::operator<< (std::ostream &, const KRecord &) |
输出KRecord信息,如:KRecord(datetime, open, high, low, close, transAmount, count) 更多... | |
bool HKU_API | hku::operator== (const KRecord &d1, const KRecord &d2) |
比较两个KRecord是否相等,一般仅测试时使用 更多... | |
HKU_API std::ostream & | hku::operator<< (std::ostream &, const MarketInfo &) |
输出市场信息,如: MarketInfo(SH, 上海证劵交易所, 上海市场, 000001, 2011-Dec-06 00:00:00) 更多... | |
HKU_API std::ostream & | hku::operator<< (std::ostream &os, const Stock &stock) |
输出Stock信息,如:Stock(market, code, name, type, valid, startDatetime, lastDatetime) 更多... | |
HKU_API std::ostream & | hku::operator<< (std::ostream &, const StockTypeInfo &) |
输出证券类型信息,如:StockTypeInfo(type, description, tick, precision, minTradeNumber, maxTradeNumber) 更多... | |
HKU_API std::ostream & | hku::operator<< (std::ostream &, const StockWeight &) |
输出权息信息,如:Weight(datetime, countAsGift, countForSell, priceForSell, bonus, increasement, totalCount, freeCount) 更多... | |
HKU_API std::ostream & | hku::operator<< (std::ostream &, const TimeLineRecord &) |
输出TimeLineRecord信息,如:TimeSharingRecord(datetime, price, vol) 更多... | |
HKU_API std::ostream & | hku::operator<< (std::ostream &os, const TimeLineList &) |
输出TimeLine信息 更多... | |
bool HKU_API | hku::operator== (const TimeLineRecord &d1, const TimeLineRecord &d2) |
比较两个TimeLineRecord是否相等,一般仅测试时使用 更多... | |
HKU_API std::ostream & | hku::operator<< (std::ostream &, const TransRecord &) |
输出 TransRecord 信息,如:TimeSharingRecord(datetime, price, vol) 更多... | |
HKU_API std::ostream & | hku::operator<< (std::ostream &os, const TransList &) |
输出 TransList 信息 更多... | |
bool HKU_API | hku::operator== (const TransRecord &d1, const TransRecord &d2) |
比较两个 TransRecord 是否相等,一般仅测试时使用 更多... | |
证券管理类、证券类等
证券管理类、证券类等
typedef vector<Block> hku::BlockList |
typedef vector<KRecord> hku::KRecordList |
typedef shared_ptr<KRecordList> hku::KRecordListPtr |
typedef vector<Stock> hku::StockList |
typedef vector<StockWeight> hku::StockWeightList |
typedef vector<TimeLineRecord> hku::TimeLineList |
分时线
typedef shared_ptr<TimeLineList> hku::TimeLineListPtr |
typedef vector<TransRecord> hku::TransList |
分时线
typedef shared_ptr<TransList> hku::TransListPtr |
Hikyuu核心初始化,客户端必须在程序入口处调用
config_file_name | 配置信息文件名 |
KQuery HKU_API hku::KQueryByDate | ( | const Datetime & | start = Datetime::min() , |
const Datetime & | end = Null< Datetime >() , |
||
KQuery::KType | dataType = KQuery::DAY , |
||
KQuery::RecoverType | recoverType = KQuery::NO_RECOVER |
||
) |
构造按日期方式K线查询,范围[startDatetime, endDatetime)
start | 起始日期 |
end | 结束日期(不包含本身) |
dataType | K线类型 |
recoverType | 复权类型 |
KQuery HKU_API hku::KQueryByIndex | ( | hku_int64 | start = 0 , |
hku_int64 | end = Null< hku_int64 >() , |
||
KQuery::KType | dataType = KQuery::DAY , |
||
KQuery::RecoverType | recoverType = KQuery::NO_RECOVER |
||
) |
构造按索引方式K线查询,范围[start, end)
start | 起始索引,支持负数 |
end | 结束索引(不包含本身),支持负数 |
dataType | K线类型 |
recoverType | 复权类型 |
HKU_API std::ostream & hku::operator<< | ( | std::ostream & | os, |
const StockWeight & | record | ||
) |
输出权息信息,如:Weight(datetime, countAsGift, countForSell, priceForSell, bonus, increasement, totalCount, freeCount)
HKU_API std::ostream & hku::operator<< | ( | std::ostream & | os, |
const TimeLineRecord & | record | ||
) |
输出TimeLineRecord信息,如:TimeSharingRecord(datetime, price, vol)
HKU_API std::ostream & hku::operator<< | ( | std::ostream & | os, |
const TransRecord & | record | ||
) |
输出 TransRecord 信息,如:TimeSharingRecord(datetime, price, vol)
HKU_API std::ostream & hku::operator<< | ( | std::ostream & | os, |
const MarketInfo & | market | ||
) |
输出市场信息,如: MarketInfo(SH, 上海证劵交易所, 上海市场, 000001, 2011-Dec-06 00:00:00)
HKU_API std::ostream & hku::operator<< | ( | std::ostream & | os, |
const StockTypeInfo & | stockTypeInfo | ||
) |
输出证券类型信息,如:StockTypeInfo(type, description, tick, precision, minTradeNumber, maxTradeNumber)
输出KRecord信息,如:KRecord(datetime, open, high, low, close, transAmount, count)
HKU_API std::ostream & hku::operator<< | ( | std::ostream & | os, |
const TimeLineList & | |||
) |
输出TimeLine信息
TimeLine{ size : 738501 start: YYYY-MM-DD hh:mm:ss last : YYYY-MM-DD hh:mm:ss }
输出 TransList 信息
TimeLine{ size : 738501 start: YYYY-MM-DD hh:mm:ss last : YYYY-MM-DD hh:mm:ss }
输出Stock信息,如:Stock(market, code, name, type, valid, startDatetime, lastDatetime)
输出KQuery信息,如:KQuery(start, end, queryType, kType, recoverType)
bool HKU_API hku::operator== | ( | const TimeLineRecord & | d1, |
const TimeLineRecord & | d2 | ||
) |
比较两个TimeLineRecord是否相等,一般仅测试时使用
bool HKU_API hku::operator== | ( | const TransRecord & | d1, |
const TransRecord & | d2 | ||
) |
比较两个 TransRecord 是否相等,一般仅测试时使用