S SPARKDATA
← Back to data results

China equities

Stock Multi Period Quote

StockMultiPeriodQuote
FreeJSONTry online

Operation explorer

Stock Multi Period Quote

StockMultiPeriodQuote
Manage API keys

Loading account…

The example is prefilled. Choose an API key and run it.

Uses the account’s current access and allowance. Field notes stay separate so copied JSON remains executable.

  • stockObject: 贵州茅台 · 600519.SH
  • Samples use verified instruments and dictionary values. Records depend on the query range, data updates and the selected key's permissions.
  • The sample requests 5 records; some business aggregates may return more rows, as shown in the actual response.
Example field notes 5
stockObjectstring_array · required
证券市场主板,创业板,科创板通用的交易代码、证券简称、公司全名、曾用名、英文名Use an exact name or dictionary code. 贵州茅台 (1679)
beginDatestring
查询行情的起始日期,格式为YYYY-MM-DD。Use YYYY-MM-DD; wrap array values in a JSON array.
endDatestring
查询行情的结束日期,格式为YYYY-MM-DD。Use YYYY-MM-DD; wrap array values in a JSON array.
pageNonumber
定位分页查询的目标页码,默认值为1Page numbers start at 1; the sample reads the first page.
pageSizenumber
单页返回的最大记录条数,默认为500The sample requests 5 records for a quick preview.
POST /v1/data/operations/StockMultiPeriodQuote

curl example with field notes
# stockObject: string_array (required) — 证券市场主板,创业板,科创板通用的交易代码、证券简称、公司全名、曾用名、英文名
# beginDate: string — 查询行情的起始日期,格式为YYYY-MM-DD。
# endDate: string — 查询行情的结束日期,格式为YYYY-MM-DD。
# pageNo: number — 定位分页查询的目标页码,默认值为1
# pageSize: number — 单页返回的最大记录条数,默认为500
curl --silent --show-error --fail-with-body --request POST \
  'https://spark-data.cn/v1/data/operations/StockMultiPeriodQuote' \
  --header "Authorization: Bearer ${SPARKDATA_API_KEY:?Set SPARKDATA_API_KEY first}" \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data-binary '{"parameters":{"stockObject":["1679"],"beginDate":"2026-10-14","endDate":"2026-11-13","pageNo":1,"pageSize":5}}'

This API is free. Query it with any API key in your account.

Data description

Use the field names shown below when building requests.

获取指定A股在指定区间内按日、周、月、季、年周期的复权行情数据,包括开盘、最高、最低、收盘、均价、涨跌、振幅、成交额、成交量、换手率、量比、连涨连跌天数及停牌标识,支撑多维度行情统计、趋势跟踪、波动率评估及交易策略回测等业务场景。 典型问法 某只股票在指定日期区间的日 K 线数据有哪些? 查询某股票的周线、月线、季线、年线行情。 某股票在指定时间段内的复权行情数据是什么? 某只股票的昨收价、开盘价、收盘价、最高价、最低价是多少? 某股票单日 / 单周 / 单月的涨跌金额和涨跌幅是多少? 如何获取某股票按日、周、月、季、年统计的行情信息? 某股票在开始日期到截止日期之间的多周期历史行情? 使用场景 证券行情软件:展示股票日 / 周 / 月 / 季 / 年 K 线及基础行情指标。 量化交易系统:获取多周期历史行情数据用于策略回测与因子计算。 投研分析工具:统计不同周期下股票价格走势、成交量及成交额变化。 金融数据平台:为行情看板、选股工具提供标准化行情数据支撑。

POST /v1/data/operations/StockMultiPeriodQuote · JSON

Input parameters

FieldTypeConstraintDescription and example
stockObject
股票代码
string_array
string_array
Required
Dictionary selection: STOCK_A_COMPANY
证券市场主板,创业板,科创板通用的交易代码、证券简称、公司全名、曾用名、英文名

Example: ["1679"]

statisticsPeriod
统计周期
string
string
Optional
Dictionary selection: K_Mul_Cycle_CODE
数据统计的时间周期,如日、周、月、季、年。

Example: Example text

restorationStatus
复权方式
string
string
Optional
Dictionary selection: FUQUAN
对历史价格进行调整的方式,如前复权、后复权。

Example: Example text

beginDate
开始日期
string
string
Optional查询行情的起始日期,格式为YYYY-MM-DD。

Example: 2026-10-14

endDate
截止日期
string
string
Optional查询行情的结束日期,格式为YYYY-MM-DD。

Example: 2026-11-13

pageNo
页面编号
number
number
Optional定位分页查询的目标页码,默认值为1

Example: 1

pageSize
页内记录数
number
number
Optional单页返回的最大记录条数,默认为500

Example: 5

Response fields

FieldTypeConstraintDescription and example
stockobject
股票内码
string
string
—聚源用于确定证券唯一性的内码,包括证券市场主板,创业板,科创板的证券内码

Example: Example text

stockname
股票名称
string
string
—证券官方简称

Example: Example text

stockcode
股票代码
string
string
—证券市场主板,创业板,科创板通用的交易代码

Example: Example text

statisticsperiod
统计周期
string
string
—数据统计的时间周期,如日、周、月、季、年。

Example: Example text

enddate
交易日期
string
string
—返回行情区间结束日期,格式“YYYY-MM-DD”

Example: Example text

prevcloseprice
前收盘价(元)
string
string
—上一个交易周期的收盘价格。

Example: Example text

openprice
开盘价(元)
string
string
—当期第一笔成交的交易价格。

Example: Example text

highprice
最高价(元)
string
string
—当期达到的最高成交价格。

Example: Example text

lowprice
最低价(元)
string
string
—当期达到的最低成交价格。

Example: Example text

closeprice
收盘价(元)
string
string
—当期最后一笔成交的交易价格。

Example: Example text

avgprice
均价(元)
string
string
—当期的盘中成交平均价格。

Example: Example text

changeofprice
涨跌(元)
string
string
—收盘价较前收盘的绝对价格变动。

Example: Example text

changepct
涨跌幅(%)
string
string
—收盘价较前收盘的百分比变动。

Example: Example text

rangepct
振幅(%)
string
string
—最高价与最低价之差相对于前收盘的比例。

Example: Example text

turnovervalue
成交额(万元)
string
string
—当期成交的总金额。

Example: Example text

turnovervolume
成交量(万股)
string
string
—当期成交的股票数量。

Example: Example text

turnoverdeals
成交笔数
string
string
—当期股票成交的笔数。

Example: Example text

turnoverrate
换手率(%)
string
string
—成交量占流通股本的比例。

Example: Example text

volumeratio
量比
string
string
—当期总成交量/过去N期平均成交量

Example: Example text

fallingdowndays
连跌天数(天)
string
string
—仅日度行情适用,截至交易日,股票连跌天数

Example: Example text

risingupdays
连涨天数(天)
string
string
—仅日度行情适用,截至交易日,股票连涨天数

Example: Example text

ifsuspend
是否停牌
string
string
—仅日度行情适用,股票当日是否停牌

Example: Example text

Request example

Example instruments, required parameters and applicable page limits are prefilled. Open the side drawer for field notes and a live response.

{
  "parameters": {
    "stockObject": [
      "1679"
    ],
    "beginDate": "2026-10-14",
    "endDate": "2026-11-13",
    "pageNo": 1,
    "pageSize": 5
  }
}
  • stockObject: 贵州茅台 · 600519.SH
  • Samples use verified instruments and dictionary values. Records depend on the query range, data updates and the selected key's permissions.
  • The sample requests 5 records; some business aggregates may return more rows, as shown in the actual response.

Coverage and access boundaries

Run the example to check the securities, dates and fields you need. Available history and content rights vary by endpoint. Requests use your account access and the selected API key.

Follow the parameter notes for minute intervals, price adjustment and time units. A missing field does not mean a zero value.