全市场K线相似度排序(qplus/similar_kline/similar_kline_sort) 在线调试
根据几个公式的操作,选出给定市场、代码集和板块范围内的共同满足这些条件的股票。同时返回公式的计算结果
网关地址
沙箱环境调用地址: | 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_sort |
---|
是否需要业务登录
否 |
---|
HTTP请求方式
POST |
---|
请求参数
参数名 | 类型 | 必填 | 最大长度 | 默认值 | 中文名 | 描述 |
---|---|---|---|---|---|---|
period | Integer | 否 | 32 | 周期 |
默认支持周期为日K线相似的K线
|
|
kline_count | Integer | 否 | 32 | K线根数 |
默认支持为最近30个交易日相似的K线
|
|
start_pos | Integer | 否 | 32 | 0 | 分页起始查询位置 |
默认为0
|
data_count | Integer | 否 | 32 | 10 | 获取数据条数 |
默认为10
|
返回参数
参数名 | 类型 | 最大长度 | 默认值 | 中文名 | 描述 |
---|---|---|---|---|---|
error_no | String | 错误代码 |
OK':表示操作成功,其他为错误码
|
||
error_info | String | 2000 | 操作结果描述 |
若'error_no'不为'OK',
该字段返回错误信息描述,否则该字段可以不存在。
|
|
similar_kline_pair_grp | Object | 象 | 相似k线代码对 |
请求示例
/quote/v2/qplus/similar_kline/similar_kline_sort
正确返回示例
{"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"}