Hikyuu
|
按索引方式查询K线数据条件 更多...
#include <KQuery.h>
Public 类型 | |
typedef string | KType |
查询K线类型:日线/周线等 更多... | |
Public 成员函数 | |
KQuery () | |
默认构造,按索引方式查询全部日线数据,不复权 更多... | |
KQuery (hku_int64 start, hku_int64 end=Null< hku_int64 >(), KType dataType=DAY, RecoverType recoverType=NO_RECOVER, QueryType queryType=INDEX) | |
K线查询,范围[start, end) 更多... | |
hku_int64 | start () const |
按索引方式查询时,返回指定的起始索引,否则返回Null<hku_int64>() 更多... | |
hku_int64 | end () const |
按索引方式查询时,返回指定的结束索引,否则返回Null<hku_int64>() 更多... | |
Datetime | startDatetime () const |
按日期方式查询时,返回指定的起始日期,否则返回Null<Datetime>() 更多... | |
Datetime | endDatetime () const |
按日期方式查询时,返回指定的结束日期,否则返回Null<Datetime>() 更多... | |
QueryType | queryType () const |
获取查询条件类型 更多... | |
string | kType () const |
获取K线数据类型 更多... | |
RecoverType | recoverType () const |
获取复权类型 更多... | |
静态 Public 成员函数 | |
static string | getQueryTypeName (QueryType) |
获取queryType名称,用于显示输出 更多... | |
static string | getKTypeName (KType) |
获取KType名称,用于显示输出 更多... | |
static string | getRecoverTypeName (RecoverType) |
获取recoverType名称,用于显示输出 更多... | |
static QueryType | getQueryTypeEnum (const string &) |
根据字符串名称获取相应的queryType枚举值 更多... | |
static KType | getKTypeEnum (const string &) |
根据字符串名称,获取相应的枚举值 更多... | |
static RecoverType | getRecoverTypeEnum (const string &) |
根据字符串名称,获取相应的枚举值 更多... | |
静态 Public 属性 | |
static const string | MIN |
static const string | MIN5 |
static const string | MIN15 |
static const string | MIN30 |
static const string | MIN60 |
static const string | DAY |
static const string | WEEK |
static const string | MONTH |
static const string | QUARTER |
static const string | HALFYEAR |
static const string | YEAR |
static const string | MIN3 |
static const string | HOUR2 |
static const string | HOUR4 |
static const string | HOUR6 |
static const string | HOUR12 |
按索引方式查询K线数据条件
typedef string hku::KQuery::KType |
查询K线类型:日线/周线等
|
inline |
默认构造,按索引方式查询全部日线数据,不复权
|
inline |
K线查询,范围[start, end)
start | 起始索引,支持负数 |
end | 结束索引(不包含本身),支持负数 |
dataType | K线类型 |
recoverType | 复权类型 |
queryType | 默认按索引方式查询 |
|
inline |
按索引方式查询时,返回指定的结束索引,否则返回Null<hku_int64>()
Datetime hku::KQuery::endDatetime | ( | ) | const |
按日期方式查询时,返回指定的结束日期,否则返回Null<Datetime>()
|
static |
根据字符串名称,获取相应的枚举值
|
static |
根据字符串名称获取相应的queryType枚举值
|
static |
根据字符串名称,获取相应的枚举值
|
static |
获取recoverType名称,用于显示输出
|
inline |
获取K线数据类型
|
inline |
获取查询条件类型
|
inline |
获取复权类型
|
inline |
按索引方式查询时,返回指定的起始索引,否则返回Null<hku_int64>()
Datetime hku::KQuery::startDatetime | ( | ) | const |
按日期方式查询时,返回指定的起始日期,否则返回Null<Datetime>()
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |