S SPARKDATA
← Back to data results

China equities

Market Fund Flow Rank

MarketFundFlowRank
FreeJSONTry online

Operation explorer

Market Fund Flow Rank

MarketFundFlowRank
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 3
secuMarketCodestring · required
证券市场名称Use an exact name or dictionary code. 沪深A股 (HSAS)
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/MarketFundFlowRank

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

POST /v1/data/operations/MarketFundFlowRank · JSON

Input parameters

FieldTypeConstraintDescription and example
secuMarketCode
证券市场名称
string
string
Required
Dictionary selection: HS_SECU_MARKET_CODE
证券市场名称

Example: HSAS

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单页返回的最大记录条数,默认为500

Example: 5

Response fields

FieldTypeConstraintDescription and example
tradetime
交易时间
string
string
—交易时间

Example: Example text

prodCode
证券代码
string
string
—证券代码

Example: Example text

stockName
证券名称
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": {
    "secuMarketCode": "HSAS",
    "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.