免费的api数据接口-股票查询api

今天和大家分享一个免费api数据接口-股票查询api目前支持美股,港股

接口名称:股票查询api

接口平台:聚合数据

接口地址:http://op.juhe.cn/onebox/stock/query

支持格式:json/xml

请求方式:http get/post

请求示例:http://op.juhe.cn/onebox/stock/query?key=APPKEY&stock=%E6%B1%BD%E8%BD%A6%E4%B9%8B%E5%AE%B6

股票查询api调用JSON返回示例:

{
    "reason": "查询成功",
    "result": {
        "type": "美股",
        "list": {
            "datetime": "03月09日 16:00",
            "data": [
                {
                    "dk1": "今开:",
                    "dk2": "成交量:",
                    "dv1": "44.02",
                    "dv2": "163.26万"
                },
                {
                    "dk1": "昨收:",
                    "dk2": "换手率:",
                    "dv1": "43.84",
                    "dv2": "1.57%"
                },
                {
                    "dk1": "最高:",
                    "dk2": "市值:",
                    "dv1": "45.98",
                    "dv2": "43.77亿"
                },
                {
                    "dk1": "最低:",
                    "dk2": "市盈率:",
                    "dv1": "41.45",
                    "dv2": "37.59"
                }
            ],
            "address": "中国北京市海淀区丹棱街3号中国电子大厦B座10层"
        }
    },
    "error_code": 0
}


你可能感兴趣的:(api,股票,免费接口)