自身相似K线查询(qplus/similar_kline/similar_kline_list_by_self) 在线调试
返回自身相似度最高的时间段
网关地址
沙箱环境调用地址: | https://sandbox.hscloud.cn |
数据核查类生产调用地址: | https://api.hscloud.cn |
仿真业务接口生产调用地址: | https://vopen.hscloud.cn |
其余生产调用地址: | https://open.hscloud.cn |
URL
https://sandbox.hscloud.cn/quote/v2/qplus/similar_kline/similar_kline_list_by_self |
---|
是否需要业务登录
否 |
---|
HTTP请求方式
POST |
---|
请求参数
参数名 | 类型 | 必填 | 最大长度 | 默认值 | 中文名 | 描述 |
---|---|---|---|---|---|---|
prod_code | String | 是 | 32 | 代码 |
代码
|
|
hq_type_code | String | 是 | 32 | 市场 |
市场
|
|
period | Integer | 否 | 32 | 周期 |
默认支持周期为日K线相似的K线
|
|
kline_count | Integer | 否 | 32 | K线根数 |
默认支持为最近30个交易日相似的K线
|
返回参数
参数名 | 类型 | 最大长度 | 默认值 | 中文名 | 描述 |
---|---|---|---|---|---|
error_no | String | 错误代码 |
OK':表示操作成功,其他为错误码
|
||
error_info | String | 2000 | 操作结果描述 |
若'error_no'不为'OK',
该字段返回错误信息描述,否则该字段可以不存在。
|
|
similar_kline_grp | Object | 象 | 相似K线结果集 |
数组个数为1
|
请求示例
/quote/v2/qplus/similar_kline/similar_kline_list_by_self
正确返回示例
{"similar_kline_grp":[{"prod_code":"002095","hq_type_code":"XSHE","pearson":965,"period":6,"kline_count":30,"begin_date":20170628,"end_date":20170808},{"prod_code":"000929","hq_type_code":"XSHE","pearson":965,"period":6,"kline_count":30,"begin_date":20120711,"end_date":20120821}],"error_no":"OK"}
错误返回示例
{"error_no":"1","error_info":"request param error"}