S SPARKDATA
← Back to data results

Indices

Index Live Quote

IndexLiveQuote
FreeJSONTry online

Operation explorer

Index Live Quote

IndexLiveQuote
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.

  • indexObject: 沪深300 · 000300.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 3
indexObjectstring_array · required
沪深北市场的指数代码,支持一次获取多个品种数据Use an exact name or dictionary code. 沪深300 (3145)
pageNonumber
定位分页查询的目标页码,默认不限Page numbers start at 1; the sample reads the first page.
pageSizenumber
单页返回的最大记录条数,默认不限The sample requests 5 records for a quick preview.
POST /v1/data/operations/IndexLiveQuote

curl example with field notes
# indexObject: string_array (required) — 沪深北市场的指数代码,支持一次获取多个品种数据
# pageNo: number — 定位分页查询的目标页码,默认不限
# pageSize: number — 单页返回的最大记录条数,默认不限
curl --silent --show-error --fail-with-body --request POST \
  'https://spark-data.cn/v1/data/operations/IndexLiveQuote' \
  --header "Authorization: Bearer ${SPARKDATA_API_KEY:?Set SPARKDATA_API_KEY first}" \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data-binary '{"parameters":{"indexObject":["3145"],"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.

本接口提供境内外交易所(沪深北、港交所、美交所)发布或上市的指数板块的盘中实时行情表现;该API返回指定指数板块的盘中行情走势信息,包括实时的交易状态、最新价、开盘价、涨跌、涨跌幅、振幅、最高价、最低价、前收盘价(昨收)、总成交量、成交金额、换手率、量比、委比、委差、上涨家数、下跌家数、平盘家数等关键指标;帮助用户了解指数板块的实时行情动态。 A 股的交易时间为每周一至周五(法定节假日除外),连续交易时间是上午 9:30-11:30,13:00-15:00,因此开盘时间是9:30,午间收盘时间是上午 11:30,整日收盘时间是下午 15:00。 港股市场的交易日一般是周一至周五,交易时段为9:30-12:00,13:00-16:00。因此开盘时间是9:30,午间收盘时间是 12:00,整日收盘时间是下午 16:00。 美股市场的交易日一般是周一至周五,无午间休市,常规交易时段为美东时间 9:30-16:00。因此开盘时间是 9:30,整日收盘时间是下午 16:00。 对应北京时间: 夏令时(每年 3 月第二个周日 —11 月第一个周日):21:30— 次日 04:00 冬令时(每年 11 月第一个周日 — 次年 3 月第二个周日):22:30— 次日 05:00 使用场景: -用户需要获取某个或多个指数或大盘的盘口交易数据,如买卖力量等数据,则更倾向于用实时行情接口; -用户需要获取某个或多个指数的实时行情信息; -查询指数的实时行情; -提供指数实时行情数据支持

POST /v1/data/operations/IndexLiveQuote · JSON

Input parameters

FieldTypeConstraintDescription and example
indexObject
指数代码
string_array
string_array
Required
Dictionary selection: SECU_INDEX
沪深北市场的指数代码,支持一次获取多个品种数据

Example: ["3145"]

pageNo
页面编号
number
number
Optional定位分页查询的目标页码,默认不限

Example: 1

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

Example: 5

Response fields

FieldTypeConstraintDescription and example
indexName
指数名称
string
string
—指数名称

Example: Example text

indexCode
指数代码
string
string
—指数代码

Example: Example text

indexObject
指数内码
string
string
—指数内码

Example: Example text

tradingTimestamp
交易时间
string
string
—最新交易日行情时间戳

Example: Example text

tradeStatus
交易状态
string
string
—最新交易日交易状态

Example: Example text

latestPrice
最新(点)
number
number
—最新交易日最新指数点位

Example: 1

openPrice
开盘(点)
number
number
—指数最新开盘点位

Example: 1

changeOfPrice
涨跌(点)
number
number
—指数最新价相对昨收价的价格变动额

Example: 1

changePCT
涨跌幅(%)
number
number
—指数最新价相对昨收价的价格变动幅度

Example: 1

rangePCT
振幅(%)
number
number
—指数最新交易日最高点位与最低点位的价差相对昨收价的幅度

Example: 1

highPrice
最高(点)
number
number
—指数最新交易日最高点位

Example: 1

lowPrice
最低(点)
number
number
—指数最新交易日最低点位

Example: 1

prevClosePrice
昨收(点)
number
number
—指数前一交易日的收盘点位

Example: 1

turnoverVolumeLot
总成交量
string
string
—指数板块最新交易日的累计成交手数

Example: Example text

turnoverValue
成交额
string
string
—指数板块最新交易日的累计成交总金额

Example: Example text

turnoverRate
换手率(%)
number
number
—指数板块最新交易日的换手率

Example: 1

volumeRate
量比
number
number
—指数当前每分钟成交量相对过去 5 日均值的比值

Example: 1

entrustRate
委比(%)
number
number
—指数板块最新交易日买卖盘相对强度的指标

Example: 1

entrustDiff
委差
number
number
—指数板块最新交易日委托买入与卖出手数的差值

Example: 1

upCount
上涨家数
number
number
—指数板块最新交易日内价格上涨的股票家数

Example: 1

flatCount
平盘家数
number
number
—指数板块最新交易日内价格与昨收价持平的股票家数

Example: 1

downCount
下跌家数
number
number
—指数板块最新交易日内价格下跌的股票家数

Example: 1

Request example

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

{
  "parameters": {
    "indexObject": [
      "3145"
    ],
    "pageNo": 1,
    "pageSize": 5
  }
}
  • indexObject: 沪深300 · 000300.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.