S SPARKDATA
← Back to data results

China equities

Market Sector Trade Stats

MarketSectorTradeStats
FreeJSONTry online

Operation explorer

Market Sector Trade Stats

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

  • 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 4
beginDatedate
查询开始日期Use YYYY-MM-DD; wrap array values in a JSON array.
endDatedate
查询结束日期Use YYYY-MM-DD; wrap array values in a JSON array.
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/MarketSectorTradeStats

curl example with field notes
# beginDate: date — 查询开始日期
# endDate: date — 查询结束日期
# pageNo: number — 定位分页查询的目标页码,默认不限
# pageSize: number — 单页返回的最大记录条数,默认不限
curl --silent --show-error --fail-with-body --request POST \
  'https://spark-data.cn/v1/data/operations/MarketSectorTradeStats' \
  --header "Authorization: Bearer ${SPARKDATA_API_KEY:?Set SPARKDATA_API_KEY first}" \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data-binary '{"parameters":{"beginDate":"2026-10-15","endDate":"2026-11-14","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 支持输入开始日期、截止日期及统计周期,快速获取沪深京三大交易所的成交数据,接口聚焦 “全市场及单个市场成交情况”,返回各市场的成交量(亿股)、成交额(亿元)等核心指标,助力用户分析市场活跃度、资金流向。 典型问法 (1)2024 年 10 月沪深京三大交易所总成交额; (2)2023Q1-Q4 各季度创业板成交量变化趋势; (3)2024 年 5 月 1 日 - 5 月 31 日沪市主板与深市主板成交额差异; 1、单周期全市场成交数据获取 输入开始日期、截止日期及统计周期,直接获取对应周期的全市场及单个市场完整成交数据,涵盖沪深京整体、沪深合计、各交易所及下属细分板块的成交量与成交额指标。 示例:查询 2024 年 11 月沪深京成交统计;查询 2024Q3 沪市科创板成交数据。 2、特定板块成交数据提取 输入时间范围、统计周期及目标板块(如创业板、科创板、沪市主板等),精准提取该板块对应周期的成交量、成交额数据,聚焦单一板块成交表现。 示例:查询 2024 年 6 月创业板成交量及成交额;查询 2023 年四季度京市成交额。

POST /v1/data/operations/MarketSectorTradeStats · JSON

Input parameters

FieldTypeConstraintDescription and example
beginDate
开始日期
date
date
Optional查询开始日期

Example: 2026-10-15

endDate
截止日期
date
date
Optional查询结束日期

Example: 2026-11-14

reportPeriod
统计周期
string
string
Optional
Dictionary selection: StatisticalPeriod
统计周期类型,包括日、周、月、年

Example: Example text

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

Example: 1

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

Example: 5

Response fields

FieldTypeConstraintDescription and example
enddate
截止日期
string
string
—成交统计周期的截止日期

Example: Example text

hsjvolume
沪深京成交量(亿股)
string
string
—沪深京市场成交量

Example: Example text

hsjamount
沪深京成交额(亿元)
string
string
—沪深京市场成交额

Example: Example text

hsvolume
沪深成交量(亿股)
string
string
—沪深市场股票成交量

Example: Example text

hsamount
沪深成交额(亿元)
string
string
—沪深市场股票成交额

Example: Example text

hsmarketvolume
沪市成交量(亿股)
string
string
—沪市股票成交量

Example: Example text

hsmarketamount
沪市成交额(亿元)
string
string
—沪市股票成交额

Example: Example text

hsmainboardvolume
沪市主板成交量(亿股)
string
string
—沪市主板板块成交量

Example: Example text

hsmainboardamount
沪市主板成交额(亿元)
string
string
—沪市主板板块成交额

Example: Example text

starmarketvolume
科创板成交量(亿股)
string
string
—科创板板块成交量

Example: Example text

starmarketamount
科创板成交额(亿元)
string
string
—科创板板块成交额

Example: Example text

szmarketvolume
深市成交量(亿股)
string
string
—深市股票成交量

Example: Example text

szmarketamount
深市成交额(亿元)
string
string
—深市股票成交额

Example: Example text

szmainboardvolume
深市主板成交量(亿股)
string
string
—深市主板板块成交量

Example: Example text

szmainboardamount
深市主板成交额(亿元)
string
string
—深市主板板块成交额

Example: Example text

gemvolume
创业板成交量(亿股)
string
string
—创业板板块成交量

Example: Example text

gemamount
创业板成交额(亿元)
string
string
—创业板板块成交额

Example: Example text

bjmarketvolume
京市成交量(亿股)
string
string
—北交所成交量

Example: Example text

bjmarketamount
京市成交额(亿元)
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": {
    "beginDate": "2026-10-15",
    "endDate": "2026-11-14",
    "pageNo": 1,
    "pageSize": 5
  }
}
  • 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.