跳转至

股票日线行情

本页定义目标 API,实际数据查询服务尚未实现。示例仅用于表达请求和响应格式。

数据产品标识:stock.daily_bars 证券对象标识示例:000001.SZ

接口名称

获取股票日线行情

接口说明

股票按明确复权口径提供的日频开高低收、成交数量和成交金额。

请求参数

参数名 类型 必填 说明
security_code string 筛选一个或多个证券代码。
market string 市场代码;中文客户端默认 CN。
start_date date 查询开始日期,包含该日。
end_date date 查询结束日期,包含该日。

返回字段

字段名 中文名称 类型 是否可空 字段说明
security_code 证券代码 string 行情对应的证券代码。
trading_date 交易日期 date 按交易场所本地时区确定的交易日。
open_price 开盘价格 decimal 该周期的开盘价格。
high_price 最高价格 decimal 该周期的最高价格。
low_price 最低价格 decimal 该周期的最低价格。
close_price 收盘价格 decimal 该周期的收盘价格。
previous_close_price 前收盘价格 decimal 上一交易周期的收盘价格。
price_change 变动值 decimal 收盘值相对前收盘值的变动。
price_return 涨跌幅 decimal 收盘值相对前收盘值的简单收益率,0.01 表示 1%。
volume 成交数量 decimal 标准基础数量单位下的成交数量。
turnover 成交金额 decimal 按价格币种表示的未缩放成交金额。
trade_count 成交笔数 integer 该周期内的成交笔数。
vwap 成交量加权平均价 decimal 该周期按成交数量加权的平均成交价格。
adjustment 复权口径 string 价格复权口径:none 未复权,forward 前复权,backward 后复权。
price_currency 价格币种 string 价格和成交金额使用的 ISO 4217 币种代码。
quantity_unit 数量单位 string 成交量使用的基础数量单位;股票为股,ETF 为份,统一代码 share。
after_hours_volume 盘后成交数量 decimal 常规交易时段结束后的成交数量。
after_hours_turnover 盘后成交金额 decimal 常规交易时段结束后的成交金额。
is_final 是否最终值 boolean 数据观测时该周期是否已经结束;盘中及尚未结束的周、月周期为 false。
observed_at 观测时间 timestamp 来源数据的观测时刻,统一转换为带 UTC 时区的时间戳;不能用构建时间补填。

字段补充属性

字段名 属性
open_price 精度:38;小数位数:18
high_price 精度:38;小数位数:18
low_price 精度:38;小数位数:18
close_price 精度:38;小数位数:18
previous_close_price 精度:38;小数位数:18
price_change 精度:38;小数位数:18
price_return 精度:38;小数位数:18
volume 精度:38;小数位数:18
turnover 精度:38;小数位数:18
vwap 精度:38;小数位数:18
adjustment 枚举:["none", "forward", "backward"]
quantity_unit 枚举:["share"]
after_hours_volume 精度:38;小数位数:18
after_hours_turnover 精度:38;小数位数:18
observed_at 标准:ISO 8601 UTC

请求示例

{
  "dataset_id": "stock.daily_bars",
  "select": [
    "security_code",
    "trading_date",
    "open_price",
    "high_price",
    "low_price",
    "close_price",
    "previous_close_price",
    "price_change"
  ],
  "where": [
    {
      "field": "security_code",
      "op": "eq",
      "value": "000001.SZ"
    },
    {
      "field": "trading_date",
      "op": "gte",
      "value": "2026-01-01"
    },
    {
      "field": "trading_date",
      "op": "lte",
      "value": "2026-08-10"
    }
  ],
  "page": {
    "limit": 1000,
    "cursor": null
  }
}

响应示例

{
  "dataset_id": "stock.daily_bars",
  "fields": [
    "security_code",
    "trading_date",
    "open_price",
    "high_price",
    "low_price",
    "close_price",
    "previous_close_price",
    "price_change"
  ],
  "data": [
    {
      "security_code": "000001.SZ",
      "trading_date": "2026-08-10",
      "open_price": "0.00",
      "high_price": "0.00",
      "low_price": "0.00",
      "close_price": "0.00",
      "previous_close_price": "0.00",
      "price_change": "0.00"
    }
  ],
  "page": {
    "next_cursor": null,
    "complete": true
  }
}