S SPARKDATA
← Back to data results

China equities

Stock Connect trading statistics

HSGTTradeStats
FreeJSONTry online

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 支持输入市场类型(沪股通 / 深股通 / 北向资金 / 港股通沪 / 港股通深 / 南向资金)、统计周期及日期范围,快速获取指定跨境交易市场在对应统计维度下的核心交易数据。接口返回市场类型、统计周期、截止日期、成交金额(亿元)、成交笔数(万笔)等关键字段,全面覆盖沪深港通跨境资金的交易规模、交易频次等核心维度,帮助用户深入了解北向 / 南向资金的流动特征、不同跨境通道的交易活跃度及整体跨境交易态势。 典型问法 北向资金 2024 年 6 月 30 日的成交金额和成交笔数分别是多少?2023 年四季度,沪股通与深股通的成交金额差异如何?南向资金 2024 年上半年的成交笔数同比增长幅度是多少? 使用场景 1、单市场单期查询: 输入具体市场类型、统计周期及截止日期,精准获取指定时期内该跨境交易市场的详细交易数据。示例:查询沪股通 2024 年一季度的成交金额与成交笔数;获取港股通深 2023 年年报统计期内的成交金额数据;查询南向资金 2024 年 6 月的成交笔数。 2、多市场对比查询: 批量输入多个市场类型,对比不同跨境交易市场在同一统计周期(同一日期范围)内的交易表现差异。示例:对比沪股通与深股通 2024 年二季度的成交金额与成交笔数;分析北向资金与南向资金 2024 年上半年的成交金额规模差异;对比港股通沪与港股通深最新报告期内的成交笔数。 3、交易动态追踪: 输入指定市场类型及多个统计周期(日期范围),获取多期交易数据,展示成交金额、成交笔数等指标的历史变化趋势,辅助分析跨境资金流动规律与交易活跃度的发展态势。示例:查看北向资金近三年各季度报告中的成交金额与成交笔数变动情况;追踪南向资金 2022-2024 年间的成交金额增长趋势;分析沪股通 2024 年各月度成交笔数的波动特征。

POST /v1/data/operations/HSGTTradeStats · JSON

Input parameters

FieldTypeConstraintDescription and example
secuMarketCode
证券市场名称
string_array
string_array
Required
Dictionary selection: HSGT_MARKET_CODE
市场支沪股通、深股通、北向资金、港股通沪、港股通深、南向资金等市场

Example: ["HSGGT"]

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

Example: Example text

beginDate
开始日期
string
string
Optional查询开始日期

Example: 2026-10-15

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

Example: 2026-11-14

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

Example: 1

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

Example: 5

Response fields

FieldTypeConstraintDescription and example
secumarketcode
证券市场名称
string
string
—市场支沪股通、深股通、北向资金、港股通沪、港股通深、南向资金等市场

Example: Example text

reportperiod
统计周期
string
string
—统计周期类型,包括日、周、月、年

Example: Example text

enddate
截止日期
string
string
—数据统计日期

Example: Example text

btradevalue
买入成交金额
string
string
—指定日期沪深港通市场买入成交金额

Example: Example text

btradeamount
买入成交笔数
string
string
—指定日期沪深港通市场买入成交笔数

Example: Example text

stradevalue
卖出成交金额
string
string
—指定日期沪深港通市场卖出成交金额

Example: Example text

stradeamount
卖出成交笔数
string
string
—指定日期沪深港通市场卖出成交笔数

Example: Example text

tradvalsum
买入及卖出成交金额
string
string
—指定日期沪深港通市场买入及卖出成交金额

Example: Example text

tradamountsum
买入及卖出成交笔数
string
string
—指定日期沪深港通市场买入及卖出成交笔数

Example: Example text

tradvalnetsum
买入成交净额
string
string
—指定日期沪深港通市场买入成交净额

Example: Example text

accutradvalnetsum
累计买入成交净额
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": {
    "secuMarketCode": [
      "HSGGT"
    ],
    "beginDate": "2026-10-15",
    "endDate": "2026-11-14",
    "pageNo": "1",
    "pageSize": "5"
  }
}
  • secuMarketCode: 沪市港股通
  • 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.