5日分时(trend5day)
获取五日分时信息
网关地址
沙箱环境调用地址: | https://sandbox.hscloud.cn |
数据核查类生产调用地址: | https://api.hscloud.cn |
其余生产调用地址: | https://open.hscloud.cn |
URL
https://sandbox.hscloud.cn/quote/v1/trend5day |
---|
是否需要业务登录
否 |
---|
HTTP请求方式
GET |
---|
支持格式
JSON |
---|
请求参数
参数名 | 类型 | 必填 | 最大长度 | 默认值 | 中文名 | 描述 |
---|---|---|---|---|---|---|
prod_code | String | 是 | 32 | 产品代码 |
有且仅有一只代码;证券代码包含交易所代码做后缀,作为该代码的唯一标识。如:600570.SS
|
|
fields | String | 否 | 255 | 字段集合 |
允许的字段: 最新价:last_px; 均价:avg_px; 成交量:business_amount; 成交额:business_balance; 如果没有指定任何有效的字段,其效果等价于指定该字段:最新价,成交量
|
返回参数
参数名 | 类型 | 最大长度 | 默认值 | 中文名 | 描述 |
---|---|---|---|---|---|
trend_detail_data | Object | 分时详细对象 |
请求示例
/quote/v1/trend5day?prod_code=00001.HKM&fields=last_px,avg_px,business_amount,business_balance
正确返回示例
{ "data": { "trend": { "fields": [ "min_time", "last_px", "avg_px", "business_amount", "business_balance" ], "00001.HKM": [ [ 201805070931, 91.4, 91.197, 64500, 5882175 ], [ 201805070932, 91.35, 91.251, 94000, 8577550 ], ........... [ 201805080942, 91.25, 91.005, 233397, 21240342 ], [ 201805080943, 91.3, 91.006, 234397, 21331617 ], [ 201805080944, 91.4, 91.028, 251897, 22929755 ], [ 201805080945, 91.4, 91.032, 253897, 23112630 ], ............ [ 201805111559, 92.35, 92.659, 4759206, 440984110 ], [ 201805111600, 92.35, 92.606, 5750706, 532548660 ] ] } } }