S SPARKDATA
← Back to data results

China equities

A Stock Cash Flow

AStockCashFlow
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用于获取沪深北上市公司指定期间内的资金流情况,包括全单资金流入/流出情况、主力流入/流出情况、小单流入/流出情况、中单流入/流出情况、大单流入/流出情况、超大单流入/流出以及区间北向资金买入/卖出额情况和区间北向资金流入/流出额等;帮助用户了解区间内个股资金流状况。 该API返回某个或多个A股指定区间内的资金流信息。按资金流大小,涵盖总资金、主力资金、小单、中单、大单以及超大单的资金流信息;按资金流的形式,涵盖全额和主动资金流信息;具体资金流信息包含资金流入流出额、流入流出量、流入流出笔数、净流入量、净流出量、净流入额流通市值占比、净流入量流通股占比以及和交易截止日北向资金持股量/持股市值/北向资金占市值比/北向资金占流通市值比等关键指标。 使用场景: -用户需要获取某个或多个A股股票在指定期间内的资金流入流出情况; -用户需要了解某个或多个A股股票在指定期间内的流入流出量等情况 ; -用户需要了解某个或多个A股股票在指定期间截止日北向资金持股量、北向资金持股市值、北向资金占市值比等指标

POST /v1/data/operations/AStockCashFlow · JSON

Input parameters

FieldTypeConstraintDescription and example
stockObject
A股公司
string_array
string_array
Required
Dictionary selection: STOCK_A_COMPANY
证券市场主板,创业板,科创板通用的交易代码、证券简称、公司全名、曾用名、英文名

Example: ["1679"]

beginDate
开始日期
date
date
Optional查询资金流区间开始日期

Example: 2026-10-15

endDate
截止日期
date
date
Optional查询资金流区间截止日期

Example: 2026-11-14

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

Example: 1

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

Example: 5

Response fields

FieldTypeConstraintDescription and example
stockobject
股票内码
string
string
—沪深北股票的内部唯一编码

Example: Example text

stockname
股票名称
string
string
—沪深北股票的股票简称

Example: Example text

stockcode
股票代码
string
string
—沪深北股票的交易代码

Example: Example text

tradingday
交易日期
string
string
—股票交易日期,输入格式"YYYY-MM-DD"

Example: Example text

totalbuyvalue
总流入额(万元)
string
string
—股票在交易日的总资金流入额

Example: Example text

totalsellvalue
总流出额(万元)
string
string
—股票在交易日的总资金流出额

Example: Example text

totalvalue
总成交额(万元)
string
string
—股票在交易日的总成交额

Example: Example text

largenetbuyvaluedde
大单净额DDE(万元)
string
string
—股票在交易日的大单净额

Example: Example text

largenetbuyvaluedderatio
资金比(%)
string
string
—股票在交易日的资金比

Example: Example text

risingupdays
连红天数(天)
string
string
—股票在交易日的连红天数

Example: Example text

changepct
涨跌幅(%)
string
string
—股票在交易日的涨跌幅

Example: Example text

closeprice
最新收盘价(元)
string
string
—股票在交易日的最新收盘价

Example: Example text

hugenetbuyvalue
特大单净买入额(万元)
string
string
—股票在交易日的特大单净买入额

Example: Example text

largenetbuyvalue
大单净买入额(万元)
string
string
—股票在交易日的大单净买入额

Example: Example text

mediumnetbuyvalue
中单净买入额(万元)
string
string
—股票在交易日的中单净买入额

Example: Example text

smallnetbuyvalue
小单净买入额(万元)
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": {
    "stockObject": [
      "1679"
    ],
    "beginDate": "2026-10-15",
    "endDate": "2026-11-14",
    "pageNo": 1,
    "pageSize": 5
  }
}
  • stockObject: 贵州茅台 · 600519.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.