新浪财经-外盘商品期货数据
接口地址: api.cxdy.vip/api/qhfs
返回格式: JSON
请求方式: GET
请求示例: https://api.cxdy.vip/api/qhfs?apiKey=你的apiKey&symbol=XAU&period=1
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
apikey | 是 | string | 密钥,购买卡密充值,购买即可获取 |
symbol | 是 | string | symbol="XAU" |
period | 是 | string | period='5'; choice of {'1', '5', '15', '30', '60'}; |
返回参数说明:
名称 | 类型 | 说明 |
---|
返回示例:
[{ "d": "2024-04-17 15:15:00", "o": "2379.720", "h": "2379.720", "l": "2378.880", "c": "2378.910", "v": "0", "p": "0" }, { "d": "2024-04-17 15:20:00", "o": "2378.940", "h": "2380.070", "l": "2378.850", "c": "2380.070", "v": "0", "p": "0" } ]
请求参数设置:
参数名称 | 参数值 |
---|---|
[{ "d": "2024-04-17 15:15:00", "o": "2379.720", "h": "2379.720", "l": "2378.880", "c": "2378.910", "v": "0", "p": "0" }, { "d": "2024-04-17 15:20:00", "o": "2378.940", "h": "2380.070", "l": "2378.850", "c": "2380.070", "v": "0", "p": "0" } ]
错误码格式说明:
名称 | 类型 | 说明 |
---|
代码示例: