S SPARKDATA
← Back to data results

Indices

Index Capital Flow

IndexCapitalFlow
FreeJSONTry online

Operation explorer

Index Capital Flow

IndexCapitalFlow
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 5
indexObjectstring_array · required
交易市场指数代码,支持一次获取多个品种数据Use an exact name or dictionary code. 沪深300 (3145)
beginDatestring
查询开始日期Use YYYY-MM-DD; wrap array values in a JSON array.
endDatestring
查询结束日期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/IndexCapitalFlow

curl example with field notes
# indexObject: string_array (required) — 交易市场指数代码,支持一次获取多个品种数据
# beginDate: string — 查询开始日期
# endDate: string — 查询结束日期
# pageNo: number — 定位分页查询的目标页码,默认1
# pageSize: number — 单页返回的最大记录条数,默认500
curl --silent --show-error --fail-with-body --request POST \
  'https://spark-data.cn/v1/data/operations/IndexCapitalFlow' \
  --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"],"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.

本接口可获取境内股票指数在指定日期下的资金流向核心数据。接口返回小单、中单、大单、超大单、主力及全单的买入/卖出金额、买入/卖出量、买入/卖出笔数,主动买卖相关指标及净流向数据,全面覆盖不同资金规模的交易特征,帮助用户深入了解指数资金的流动方向。 典型问法 2026年2月上旬,上证指数大单与超大单的成交金额差异如何?中证指数2026年1-2月的净主动买入量变动趋势如何? 使用场景 1、单指数查询: 输入具体指数及截止日期,精准获取指定时期内该指数的各类资金流向详细数据。示例:查询上证指数2026年2月24日的主力买入额与超大单卖出笔数;获取中证指数2026年一季度的小单净买入量数据;查询沪深300在2026年2月的中单主动成交笔数。 2、多指数对比查询: 批量输入多个指数,对比同一日期范围内的资金流向表现差异。示例:对比沪深300与中证500在2026年2月的主力净买入额与全单成交金额;分析小单与主力资金2026年2月上旬的成交笔数规模差异。 3、资金流向动态追踪: 输入指定指数,获取多期资金流向数据,展示各类资金买入/卖出金额、净流向、成交笔数等指标的历史变化趋势,辅助分析指数资金流动规律。示例:查看沪深300主力资金近半年净买入额变动情况;分析中证500近30个交易日的超大单主动买卖波动特征。

POST /v1/data/operations/IndexCapitalFlow · JSON

Input parameters

FieldTypeConstraintDescription and example
indexObject
指数代码
string_array
string_array
Required
Dictionary selection: STOCK_A_INDEX
交易市场指数代码,支持一次获取多个品种数据

Example: ["3145"]

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

Example: 2026-10-15

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

Example: 2026-11-14

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

Example: 1

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

Example: 5

Response fields

FieldTypeConstraintDescription and example
indexobject
指数内码
string
string
—指数在系统内部的唯一标识

Example: Example text

indexcode
指数代码
string
string
—交易市场通用的指数代码

Example: Example text

indexname
指数简称
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

smalactinbcontinuousday
小单净主动流入持续天数(天)
number
number
—小单净主动流入持续天数

Example: 1

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

Example: 1

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

Example: 1

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

Example: 1

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

Example: 1

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

Example: 1

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

Example: 1

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

Example: 1

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

Example: 1

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

Example: 1

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

Example: 1

mainnetbuycontinuousday
主力净流入持续天数(天)
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"
    ],
    "beginDate": "2026-10-15",
    "endDate": "2026-11-14",
    "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.