S SPARKDATA
← Back to data results

China equities

Stock Market Capital Flow

StockMarketCapitalFlow
FreeJSONTry online

Operation explorer

Stock Market Capital Flow

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

  • secuMarketCode: 沪深A股
  • 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
secuMarketCodestring_array · required
市场支持沪深京市、沪深两市、沪市、深市、京市等市场Use an exact name or dictionary code. 沪深A股 (HSA)
beginDatestring
查询开始日期Use YYYY-MM-DD; wrap array values in a JSON array.
endDatestring
查询结束日期Use YYYY-MM-DD; wrap array values in a JSON array.
pageNostring
定位分页查询的目标页码,默认为1Page numbers start at 1; the sample reads the first page.
pageSizestring
单页返回的最大记录条数,默认为500The sample requests 5 records for a quick preview.
POST /v1/data/operations/StockMarketCapitalFlow

curl example with field notes
# secuMarketCode: string_array (required) — 市场支持沪深京市、沪深两市、沪市、深市、京市等市场
# beginDate: string — 查询开始日期
# endDate: string — 查询结束日期
# pageNo: string — 定位分页查询的目标页码,默认为1
# pageSize: string — 单页返回的最大记录条数,默认为500
curl --silent --show-error --fail-with-body --request POST \
  'https://spark-data.cn/v1/data/operations/StockMarketCapitalFlow' \
  --header "Authorization: Bearer ${SPARKDATA_API_KEY:?Set SPARKDATA_API_KEY first}" \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data-binary '{"parameters":{"secuMarketCode":["HSA"],"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 支持输入市场类型及日期范围,快速获取指定市场在对应日期下的资金流向核心数据。接口返回小单、中单、大单、超大单、主力及全单的买入/卖出金额、买入/卖出量、买入/卖出笔数,主动买卖相关指标及净流向数据,全面覆盖不同资金规模的交易特征,帮助用户深入了解市场资金的流动方向、不同资金主体的交易活跃度及整体市场资金态势。 典型问法 2026年2月上旬,全市场大单与超大单的成交金额差异如何?主力资金2026年1-2月的净主动买入量变动趋势如何? 使用场景 1、单市场查询: 输入具体证券市场及截止日期,精准获取指定时期内该市场的各类资金流向详细数据。示例:查询沪市2026年2月24日的主力买入额与超大单卖出笔数;获取深市2026年一季度的小单净买入量数据;查询全市场2026年2月的中单主动成交笔数。 2、多市场对比查询: 批量输入多个证券市场,对比同一日期范围内的资金流向表现差异。示例:对比沪市与深市2026年2月的主力净买入额与全单成交金额;分析小单与主力资金2026年2月上旬的成交笔数规模差异。 3、资金流向动态追踪: 输入指定证券市场,获取多期资金流向数据,展示各类资金买入/卖出金额、净流向、成交笔数等指标的历史变化趋势,辅助分析市场资金流动规律、不同资金主体的交易偏好及个股资金活跃度的发展态势。示例:查看全市场主力资金近半年净买入额变动情况;分析创业板近30个交易日的超大单主动买卖波动特征。

POST /v1/data/operations/StockMarketCapitalFlow · JSON

Input parameters

FieldTypeConstraintDescription and example
secuMarketCode
证券市场名称
string_array
string_array
Required
Dictionary selection: STOCK_SECURITIES_MARKET_CODE_NON_HSGT
市场支持沪深京市、沪深两市、沪市、深市、京市等市场

Example: ["HSA"]

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

Example: 2026-10-15

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

Example: 2026-11-14

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

Example: 1

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

Example: 5

Response fields

FieldTypeConstraintDescription and example
secumarketcode
证券市场名称
string
string
—市场支持沪深京市、沪深两市、沪市、深市、京市等市场

Example: Example text

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

Example: Example text

smallbuyvalue
小单买入额(亿元)
string
string
—单笔成交量或成成交金额符合小单标准的买入总额

Example: Example text

smallsellvalue
小单卖出额(亿元)
string
string
—单笔成交量或成交金额符合小单标准的卖出总额

Example: Example text

smallbuyvolume
小单买入量(亿股)
string
string
—单笔成交量或成交金额符合小单标准的买入总成交量

Example: Example text

smallsellvolume
小单卖出量(亿股)
string
string
—单笔成交量或成交金额符合小单标准的卖出总成交量

Example: Example text

smallbuydeal
小单买入笔数(万笔)
string
string
—单笔成交量或成交金额符合小单标准的买入总笔数

Example: Example text

smallselldeal
小单卖出笔数(万笔)
string
string
—单笔成交量或成交金额符合小单标准的卖出总笔数

Example: Example text

smallnetbuyvalue
小单净买入额(亿元)
string
string
—小单买入总额减去小单卖出总额

Example: Example text

smallnetbuyvolume
小单净买入量(亿股)
string
string
—小单买入总成交量减去小单卖出总成交量

Example: Example text

smallactivebuyvalue
小单主动买入额(亿元)
string
string
—单笔成交量或成交金额符合小单标准的主动买入总额

Example: Example text

smallactivesellvalue
小单主动卖出额(亿元)
string
string
—单笔成交量或成交金额符合小单标准的主动卖出总额

Example: Example text

smallactivebuyvolume
小单主动买入量(亿股)
string
string
—单笔成交量或成交金额符合小单标准的主动买入总成交量

Example: Example text

smallactivesellvolume
小单主动卖出量(亿股)
string
string
—单笔成交量或成交金额符合小单标准的主动卖出总成交量

Example: Example text

smallactivebuydeal
小单主动买入笔数(万笔)
string
string
—单笔成交量或成交金额符合小单标准的主动买入总笔数

Example: Example text

smallactiveselldeal
小单主动卖出笔数(万笔)
string
string
—单笔成交量或成交金额符合小单标准的主动卖出总笔数

Example: Example text

smallactivenetbuyvalue
小单净主动买入额(亿元)
string
string
—小单主动买入总额减去小单主动卖出总额

Example: Example text

smallactivenetbuyvolume
小单净主动买入量(亿股)
string
string
—小单主动买入总成交量减去小单主动卖出总成交量

Example: Example text

mediumbuyvalue
中单买入额(亿元)
string
string
—单笔成交量或成交金额符合中单标准的买入总额

Example: Example text

mediumsellvalue
中单卖出额(亿元)
string
string
—单笔成交量或成交金额符合中单标准的卖出总额

Example: Example text

mediumbuyvolume
中单买入量(亿股)
string
string
—单笔成交量或成交金额符合中单标准的买入总成交量

Example: Example text

mediumsellvolume
中单卖出量(亿股)
string
string
—单笔成交量或成交金额符合中单标准的卖出总成交量

Example: Example text

mediumbuydeal
中单买入笔数(万笔)
string
string
—单笔成交量或成交金额符合中单标准的买入总笔数

Example: Example text

mediumselldeal
中单卖出笔数(万笔)
string
string
—单笔成交量或成交金额符合中单标准的卖出总笔数

Example: Example text

mediumnetbuyvalue
中单净买入额(亿元)
string
string
—中单买入总额减去中单卖出总额

Example: Example text

mediumnetbuyvolume
中单净买入量(亿股)
string
string
—中单买入总成交量减去中单卖出总成交量

Example: Example text

mediumactivebuyvalue
中单主动买入额(亿元)
string
string
—单笔成交量或成交金额符合中单标准的主动买入总额

Example: Example text

mediumactivesellvalue
中单主动卖出额(亿元)
string
string
—单笔成交量或成交金额符合中单标准的主动卖出总额

Example: Example text

mediumactivebuyvolume
中单主动买入量(亿股)
string
string
—单笔成交量或成交金额符合中单标准的主动买入总成交量

Example: Example text

mediumactivesellvolume
中单主动卖出量(亿股)
string
string
—单笔成交量或成交金额符合中单标准的主动卖出总成交量

Example: Example text

mediumactivebuydeal
中单主动买入笔数(万笔)
string
string
—单笔成交量或成交金额符合中单标准的主动买入总笔数

Example: Example text

mediumactiveselldeal
中单主动卖出笔数(万笔)
string
string
—单笔成交量或成交金额符合中单标准的主动卖出总笔数

Example: Example text

mediumactivenetbuyvalue
中单净主动买入额(亿元)
string
string
—中单主动买入总额减去中单主动卖出总额

Example: Example text

mediumactivenetbuyvolume
中单净主动买入量(亿股)
string
string
—中单主动买入总成交量减去中单主动卖出总成交量

Example: Example text

largebuyvalue
大单买入额(亿元)
string
string
—单笔成交量或成交金额符合大单标准的买入总额

Example: Example text

largesellvalue
大单卖出额(亿元)
string
string
—单笔成交量或成交金额符合大单标准的卖出总额

Example: Example text

largebuyvolume
大单买入量(亿股)
string
string
—单笔成交量或成交金额符合大单标准的买入总成交量

Example: Example text

largesellvolume
大单卖出量(亿股)
string
string
—单笔成交量或成交金额符合大单标准的卖出总成交量

Example: Example text

largebuydeal
大单买入笔数(万笔)
string
string
—单笔成交量或成交金额符合大单标准的买入总笔数

Example: Example text

largeselldeal
大单卖出笔数(万笔)
string
string
—单笔成交量或成交金额符合大单标准的卖出总笔数

Example: Example text

largenetbuyvalue
大单净买入额(亿元)
string
string
—大单买入总额减去大单卖出总额

Example: Example text

largenetbuyvolume
大单净买入量(亿股)
string
string
—大单买入总成交量减去大单卖出总成交量

Example: Example text

largeactivebuyvalue
大单主动买入额(亿元)
string
string
—单笔成交量或成交金额符合大单标准的主动买入总额

Example: Example text

largeactivesellvalue
大单主动卖出额(亿元)
string
string
—单笔成交量或成交金额符合大单标准的主动卖出总额

Example: Example text

largeactivebuyvolume
大单主动买入量(亿股)
string
string
—单笔成交量或成交金额符合大单标准的主动买入总成交量

Example: Example text

largeactivesellvolume
大单主动卖出量(亿股)
string
string
—单笔成交量或成交金额符合大单标准的主动卖出总成交量

Example: Example text

largeactivebuydeal
大单主动买入笔数(万笔)
string
string
—单笔成交量或成交金额符合大单标准的主动买入总笔数

Example: Example text

largeactiveselldeal
大单主动卖出笔数(万笔)
string
string
—单笔成交量或成交金额符合大单标准的主动卖出总笔数

Example: Example text

largeactivenetbuyvalue
大单净主动买入额(亿元)
string
string
—大单主动买入总额减去大单主动卖出总额

Example: Example text

largeactivenetbuyvolume
大单净主动买入量(亿股)
string
string
—大单主动买入总成交量减去大单主动卖出总成交量

Example: Example text

hugebuyvalue
超大单买入额(亿元)
string
string
—单笔成交量或成交金额符合超大单标准的买入总额

Example: Example text

hugesellvalue
超大单卖出额(亿元)
string
string
—单笔成交量或成交金额符合超大单标准的卖出总额

Example: Example text

hugebuyvolume
超大单买入量(亿股)
string
string
—单笔成交量或成交金额符合超大单标准的买入总成交量

Example: Example text

hugesellvolume
超大单卖出量(亿股)
string
string
—单笔成交量或成交金额符合超大单标准的卖出总成交量

Example: Example text

hugebuydeal
超大单买入笔数(万笔)
string
string
—单笔成交量或成交金额符合超大单标准的买入总笔数

Example: Example text

hugeselldeal
超大单卖出笔数(万笔)
string
string
—单笔成交量或成交金额符合超大单标准的卖出总笔数

Example: Example text

hugenetbuyvalue
超大单净买入额(亿元)
string
string
—超大单买入总额减去超大单卖出总额

Example: Example text

hugenetbuyvolume
超大单净买入量(亿股)
string
string
—超大单买入总成交量减去超大单卖出总成交量

Example: Example text

hugeactivebuyvalue
超大单主动买入额(亿元)
string
string
—单笔成交量或成交金额符合超大单标准的主动买入总额

Example: Example text

hugeactivesellvalue
超大单主动卖出额(亿元)
string
string
—单笔成交量或成交金额符合超大单标准的主动卖出总额

Example: Example text

hugeactivebuyvolume
超大单主动买入量(亿股)
string
string
—单笔成交量或成交金额符合超大单标准的主动买入总成交量

Example: Example text

hugeactivesellvolume
超大单主动卖出量(亿股)
string
string
—单笔成交量或成交金额符合超大单标准的主动卖出总成交量

Example: Example text

hugeactivebuydeal
超大单主动买入笔数(万笔)
string
string
—单笔成交量或成交金额符合超大单标准的主动买入总笔数

Example: Example text

hugeactiveselldeal
超大单主动卖出笔数(万笔)
string
string
—单笔成交量或成交金额符合超大单标准的主动卖出总笔数

Example: Example text

hugeactivenetbuyvalue
超大单净主动买入额(亿元)
string
string
—超大单主动买入总额减去超大单主动卖出总额

Example: Example text

hugeactivenetbuyvolume
超大单净主动买入量(亿股)
string
string
—超大单主动买入总成交量减去超大单主动卖出总成交量

Example: Example text

totalbuyvalue
全单买入额(亿元)
string
string
—全市场所有单笔交易的买入总额

Example: Example text

totalsellvalue
全单卖出额(亿元)
string
string
—全市场所有单笔交易的卖出总额

Example: Example text

totalbuyvolume
全单买入量(亿股)
string
string
—全市场所有单笔交易的买入总成交量

Example: Example text

totalsellvolume
全单卖出量(亿股)
string
string
—全市场所有单笔交易的卖出总成交量

Example: Example text

totalbuydeal
全单买入笔数(万笔)
string
string
—全市场所有单笔交易的买入总笔数

Example: Example text

totalselldeal
全单卖出笔数(万笔)
string
string
—全市场所有单笔交易的卖出总笔数

Example: Example text

totalnetbuyvalue
全单净买入额(亿元)
string
string
—全单买入总额减去全单卖出总额

Example: Example text

totalnetbuyvolume
全单净买入量(亿股)
string
string
—全单买入总成交量减去全单卖出总成交量

Example: Example text

totalactivebuyvalue
全单主动买入额(亿元)
string
string
—全市场所有单笔交易的主动买入总额

Example: Example text

totalactivesellvalue
全单主动卖出额(亿元)
string
string
—全市场所有单笔交易的主动卖出总额

Example: Example text

totalactivebuyvolume
全单主动买入量(亿股)
string
string
—全市场所有单笔交易的主动买入总成交量

Example: Example text

totalactivesellvolume
全单主动卖出量(亿股)
string
string
—全市场所有单笔交易的主动卖出总成交量

Example: Example text

totalactivebuydeal
全单主动买入笔数(万笔)
string
string
—全市场所有单笔交易的主动买入总笔数

Example: Example text

totalactiveselldeal
全单主动卖出笔数(万笔)
string
string
—全市场所有单笔交易的主动卖出总笔数

Example: Example text

totalactivenetbuyvalue
全单净主动买入额(亿元)
string
string
—全单主动买入总额减去全单主动卖出总额

Example: Example text

totalactivenetbuyvolume
全单净主动买入量(亿股)
string
string
—全单主动买入总成交量减去全单主动卖出总成交量

Example: Example text

mainbuyvalue
主力买入额(亿元)
string
string
—主力资金(大单 + 超大单)对应的买入总额

Example: Example text

mainsellvalue
主力卖出额(亿元)
string
string
—主力资金(大单 + 超大单)对应的卖出总额

Example: Example text

mainbuyvolume
主力买入量(亿股)
string
string
—主力资金(大单 + 超大单)对应的买入总成交量

Example: Example text

mainsellvolume
主力卖出量(亿股)
string
string
—主力资金(大单 + 超大单)对应的卖出总成交量

Example: Example text

mainbuydeal
主力买入笔数(万笔)
string
string
—主力资金(大单 + 超大单)对应的买入总笔数

Example: Example text

mainselldeal
主力卖出笔数(万笔)
string
string
—主力资金(大单 + 超大单)对应的卖出总笔数

Example: Example text

mainnetbuyvalue
主力净买入额(亿元)
string
string
—主力买入总额减去主力卖出总额

Example: Example text

mainnetbuyvolume
主力净买入量(亿股)
string
string
—主力买入总成交量减去主力卖出总成交量

Example: Example text

mainactivebuyvalue
主力主动买入额(亿元)
string
string
—主力资金(大单 + 超大单)对应的主动买入总额

Example: Example text

mainactivesellvalue
主力主动卖出额(亿元)
string
string
—主力资金(大单 + 超大单)对应的主动卖出总额

Example: Example text

mainactivebuyvolume
主力主动买入量(亿股)
string
string
—主力资金(大单 + 超大单)对应的主动买入总成交量

Example: Example text

mainactivesellvolume
主力主动卖出量(亿股)
string
string
—主力资金(大单 + 超大单)对应的主动卖出总成交量

Example: Example text

mainactivebuydeal
主力主动买入笔数(万笔)
string
string
—主力资金(大单 + 超大单)对应的主动买入总笔数

Example: Example text

mainactiveselldeal
主力主动卖出笔数(万笔)
string
string
—主力资金(大单 + 超大单)对应的主动卖出总笔数

Example: Example text

mainactivenetbuyvalue
主力净主动买入额(亿元)
string
string
—主力主动买入总额减去主力主动卖出总额

Example: Example text

mainactivenetbuyvolume
主力净主动买入量(亿股)
string
string
—主力主动买入总成交量减去主力主动卖出总成交量

Example: Example text

smallactinbcontinuousday
小单净主动流入持续天数(天)
string
string
—小单净主动流入持续天数

Example: Example text

medactinetbuycontinuousday
中单净主动流入持续天数(天)
string
string
—中单净主动流入持续天数

Example: Example text

lgactinetbuycontinuousday
大单净主动流入持续天数(天)
string
string
—大单净主动流入持续天数

Example: Example text

hugeactinbcontinuousday
超大单净主动流入持续天数(天)
string
string
—超大单净主动流入持续天数

Example: Example text

totactinetbuycontinuousday
全单净主动流入持续天数(天)
string
string
—全单净主动流入持续天数

Example: Example text

mainactinbcontinuousday
主力净主动流入持续天数(天)
string
string
—主力净主动流入持续天数

Example: Example text

smallnetbuycontinuousday
小单净流入持续天数(天)
string
string
—小单净流入持续天数

Example: Example text

mediumnetbuycontinuousday
中单净流入持续天数(天)
string
string
—中单净流入持续天数

Example: Example text

largenetbuycontinuousday
大单净流入持续天数(天)
string
string
—大单净流入持续天数

Example: Example text

hugenetbuycontinuousday
超大单净流入持续天数(天)
string
string
—超大单净流入持续天数

Example: Example text

totnetbuycontinuousday
全单主动流入持续天数(天)
string
string
—全单主动流入持续天数

Example: Example text

mainnetbuycontinuousday
主力净流入持续天数(天)
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": [
      "HSA"
    ],
    "beginDate": "2026-10-15",
    "endDate": "2026-11-14",
    "pageNo": "1",
    "pageSize": "5"
  }
}
  • secuMarketCode: 沪深A股
  • 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.