跳至主要內容

历史行情

启源数据小于 1 分钟

GET 历史行情

GET /stock/history

http://api.qiyuansj.top/stock/history?apiky=apikey&country=IN&code=ACC:BSE&timeframe=1

请求参数

名称位置类型必选说明
apikeyquerystringyes注册获取测试密钥open in new window
countryquerystringyes国家编码
codequerystringyes股票code
timeframequerystringyes1min 5min 15min 30min 45min 60min 1D 1W 1M

返回示例

成功

{
  "code": 200,
  "list": [
    {
      "t": 1678233600,
      "c": 332.05,
      "o": 332.05,
      "h": 337.85,
      "l": 330.5,
      "v": 30258,
    }
  ],
  "msg": "ok"
}

Responses

状态码状态码含义说明
200OKopen in new window成功

返回数据结构

状态码 200

名称类型必选约束中文名说明
» codeintegertruenone状态码
» list[object]truenonenone
»» tintegerfalsenonetime
»» cnumberfalsenoneclsoe
»» onumberfalsenoneopen
»» hnumberfalsenonehigh
»» lnumberfalsenonelow
»» vintegerfalsenonevloume
» msgstringtruenonenone