S SPARKDATA
← Back to data results

Industries · Concepts

Sector Fund Flow Rank

SectorFundFlowRank
FreeJSONTry online

Operation explorer

Sector Fund Flow Rank

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

  • sectorType: 全部板块
  • 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
sectorTypestring · required
板块分类Use an exact name or dictionary code. 全部板块 (XBHS)
pageNonumber
定位分页查询的目标页码,默认值为1Page numbers start at 1; the sample reads the first page.
pageSizenumber
单页返回的最大记录条数,默认为100The sample requests 5 records for a quick preview.
POST /v1/data/operations/SectorFundFlowRank

curl example with field notes
# sectorType: string (required) — 板块分类
# pageNo: number — 定位分页查询的目标页码,默认值为1
# pageSize: number — 单页返回的最大记录条数,默认为100
curl --silent --show-error --fail-with-body --request POST \
  'https://spark-data.cn/v1/data/operations/SectorFundFlowRank' \
  --header "Authorization: Bearer ${SPARKDATA_API_KEY:?Set SPARKDATA_API_KEY first}" \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data-binary '{"parameters":{"sectorType":"XBHS","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用于按照申万行业、证监会行业、概念、地域等板块分类方式获取各板块的实时资金流数据(主力散户资金、超大单等),并支持根据行情指标对板块进行排序和分析。支持的排序指标包括主力净额 、超大单净额、大单净额、中单净额、小单净额以及小单、中单、大单、超大单资金流结果集(流入成交量、流入成交额、流出成交量、流出成交额),以及当日、五日、十日主力散户资金流集合(主力资金总流入、主力资金总流出、主力资金净额、散户资金总流入、散户资金总流出、散户资金净额)等。 使用场景: 用户可以获取指定分类下的各板块资金流入流出数据,并按主力流入净额进行排序,快速找到资金流向集中的板块,以便把握板块交易热点。 用户可以对比主力资金和散户资金的流向,判断板块的资金博弈格局为机构主导还是散户交易为主。

POST /v1/data/operations/SectorFundFlowRank · JSON

Input parameters

FieldTypeConstraintDescription and example
sectorType
板块分类
string
string
Required
Dictionary selection: SECTOR_TYPE
板块分类

Example: XBHS

sortFieldName
排序字段
string
string
Optional
Dictionary selection: HS_FUND_FLOW_SORT_FIELD_NAME
排序字段

Example: Example text

sortType
排序方式
string
string
Optional
Dictionary selection: SORT_TYPE
排序方式

Example: Example text

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

Example: 1

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

Example: 5

Response fields

FieldTypeConstraintDescription and example
sectortName
板块名称
string
string
—板块名称

Example: Example text

tradetime
交易时间
string
string
—交易时间

Example: Example text

mainNetTurnover
主力净额(万元)
number
number
—主力净额

Example: 1

continuesInDays
主力资金连续流入天数(天)
number
number
—主力资金连续流入天数

Example: 1

superGrpNetTurnover
超大单资金净额(万元)
number
number
—超大单资金净额

Example: 1

largeNetTurnover
大单资金净额(万元)
number
number
—大单资金净额

Example: 1

mediumNetTurnover
中单资金净额(万元)
number
number
—中单资金净额

Example: 1

littleNetTurnover
小单资金净额(万元)
number
number
—小单资金净额

Example: 1

superGrpAmountIn
超大单资金流入成交量(万股)
number
number
—超大单资金流入成交量

Example: 1

superGrpTurnoverIn
超大单资金流入成交额(万元)
number
number
—超大单资金流入成交额

Example: 1

superGrpAmountOut
超大单资金流出成交量(万股)
number
number
—超大单资金流出成交量

Example: 1

superGrpTurnoverOut
超大单资金流出成交额(万元)
number
number
—超大单资金流出成交额

Example: 1

largeGrpAmountIn
大单资金流入成交量(万股)
number
number
—大单资金流入成交量

Example: 1

largeGrpTurnoverIn
大单资金流入成交额(万元)
number
number
—大单资金流入成交额

Example: 1

largeGrpAmountOut
大单资金流出成交量(万股)
number
number
—大单资金流出成交量

Example: 1

largeGrpTurnoverOut
大单资金流出成交额(万元)
number
number
—大单资金流出成交额

Example: 1

mediumGrpAmountIn
中单资金流入成交量(万股)
number
number
—中单资金流入成交量

Example: 1

mediumGrpTurnoverIn
中单资金流入成交额(万元)
number
number
—中单资金流入成交额

Example: 1

mediumGrpAmountOut
中单资金流出成交量(万股)
number
number
—中单资金流出成交量

Example: 1

mediumGrpTurnoverOut
中单资金流出成交额(万元)
number
number
—中单资金流出成交额

Example: 1

littleGrpAmountIn
小单资金流入成交量(万股)
number
number
—小单资金流入成交量

Example: 1

littleGrpTurnoverIn
小单资金流入成交额(万元)
number
number
—小单资金流入成交额

Example: 1

littleGrpAmountOut
小单资金流出成交量(万股)
number
number
—小单资金流出成交量

Example: 1

littleGrpTurnoverOut
小单资金流出成交额(万元)
number
number
—小单资金流出成交额

Example: 1

mainTotalIn
主力资金总流入(万元)
number
number
—主力资金总流入

Example: 1

mainTotalOut
主力资金总流出(万元)
number
number
—主力资金总流出

Example: 1

mainNetIn
主力资金净额(万元)
number
number
—主力资金净额

Example: 1

retailTotalIn
散户资金总流入(万元)
number
number
—散户资金总流入

Example: 1

retailTotalOut
散户资金总流出(万元)
number
number
—散户资金总流出

Example: 1

retailNetIn
散户资金净额(万元)
number
number
—散户资金净额

Example: 1

main5TotalIn
五日主力资金总流入(万元)
number
number
—五日主力资金总流入

Example: 1

main5TotalOut
五日主力资金总流出(万元)
number
number
—五日主力资金总流出

Example: 1

main5NetIn
五日主力资金净额(万元)
number
number
—五日主力资金净额

Example: 1

retail5TotalIn
五日散户资金总流入(万元)
number
number
—五日散户资金总流入

Example: 1

retail5TotalOut
五日散户资金总流出(万元)
number
number
—五日散户资金总流出

Example: 1

retail5NetIn
五日散户资金净额(万元)
number
number
—五日散户资金净额

Example: 1

main10TotalIn
十日主力资金总流入(万元)
number
number
—十日主力资金总流入

Example: 1

main10TotalOut
十日主力资金总流出(万元)
number
number
—十日主力资金总流出

Example: 1

main10NetIn
十日主力资金净额(万元)
number
number
—十日主力资金净额

Example: 1

retail10TotalIn
十日散户资金总流入(万元)
number
number
—十日散户资金总流入

Example: 1

retail10TotalOut
十日散户资金总流出(万元)
number
number
—十日散户资金总流出

Example: 1

retail10NetIn
十日散户资金净额(万元)
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": {
    "sectorType": "XBHS",
    "pageNo": 1,
    "pageSize": 5
  }
}
  • sectorType: 全部板块
  • 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.