获取当日市场的指标选股 (market_index) 在线调试

获取当日市场的指标选股

网关地址

沙箱环境调用地址: https://sandbox.hscloud.cn
数据核查类生产调用地址: https://api.hscloud.cn
仿真业务接口生产调用地址: https://vopen.hscloud.cn
其余生产调用地址: https://open.hscloud.cn

URL

https://sandbox.hscloud.cn/quote/v2/market_index

是否需要业务登录

HTTP请求方式

GET

请求参数

参数名 类型 必填 最大长度 默认值 中文名 描述
en_finance_mic String 500 交易所识别码集合
如: XSHG,XSHE
selectcode_param_type String 32 def 参数类型
def: 默认参数 opt: 回测得到的优选参数
data_count Integer 10 10 数据个数
不填默认返回10条,值小于等于0也是返回默认数量

返回参数

参数名 类型 最大长度 默认值 中文名 描述
date Integer 8 日期
time Integer 8 发生时间
selectcode_param_type String 32 参数类型
参数类型: def: 默认参数 opt: 回测得到的优选参数
index_selectcode_grp Object 指标选股结果

请求示例

http://192.168.58.200:8082/quote/v2/market_index?en_finance_mic=XSHG,XSHE秏_type=def

正确返回示例

{
    "date": 20100910,
    "param_type": "def",
    "MACD": {
        "cnt": 430,
        "win_cnt": 210,
        "exp_ret": 2.34,
        "buy": {
            "600570.XSHG": {
                "param_val":[13,26,6],
                "cnt": 430,
                "win_cnt": 210,
                "exp_ret": 2.34
            },
            "000001.XSHE": {
                "param_val":[13,26,6],
                "cnt": 430,
                "win_cnt": 210,
                "exp_ret": 2.34
            }
        },
       “sell”:{
             "600000.XSHG":{
             "param_val":[13,26,6],
             "cnt": 430,        
             "win_cnt": 210,     
             "exp_ret": 2.34     
        }
      }
      ...
    }
}