Skip to content
Market Data

Get Aggregated Stock Capital Flow Data

Fetch capital flow data for a single stock in one request. The response aggregates three parts: capital flow details (today's large/medium/small order inflows and outflows), capital flow history (daily net inflow), and capital flow trend (today's intraday net inflow), for display in the capital flow module of the stock detail page. Amounts are in units of 10,000 in the stock's trading currency.

GEThttps://api.lbkrs.com/v1/quote/flow/aggregate

Parameters

counter_idstringqueryRequired

Stock id, such as ST/US/AAPL. If omitted, no error is returned, but every part returns empty data.

line_numintegerquery

Number of days returned in the capital flow history (kline.flowklines). Defaults to 20 if omitted; the Broker App always passes 20.

Responses

HTTP 200The request succeeded. The response body contains the result of the “Get aggregated stock capital flow data” operation.
Standard response envelopecodemessagedata
dataobjectdata structure
detailobject

Capital flow details (today's large/medium/small orders)

Child attributes
timestampstring

Data timestamp (in seconds; int64 returned as a string)

inflowobject

Large/medium/small order capital flow amounts, in units of 10,000 in the stock's trading currency

Child attributes
largestring

Large order amount

mediumstring

Medium order amount

smallstring

Small order amount

total_balancestring

Total amount

outflowobject

Large/medium/small order capital flow amounts, in units of 10,000 in the stock's trading currency

Child attributes
largestring

Large order amount

mediumstring

Medium order amount

smallstring

Small order amount

total_balancestring

Total amount

next_pull_intervalstring

Interval before the next pull (in seconds; int64 returned as a string). The Broker App uses it to schedule periodic refreshes.

klineobject

Capital flow history (daily)

Child attributes
flowklinesarray<object>

Daily net capital inflows, in ascending time order

Child attributes
inflowstring

Net capital inflow for the day (negative values indicate net outflow), in units of 10,000

timestampstring

Trading day timestamp (in seconds; int64 returned as a string)

closestring

Closing price for the day. Returned only when candlestick data is requested; this endpoint always returns an empty string.

prev_closestring

Previous day's closing price. Returned only when candlestick data is requested; this endpoint always returns an empty string.

minuteobject

Capital flow trend (today's intraday)

Child attributes
flowminutesarray<object>

Cumulative net capital inflow for each minute of today, in ascending time order

Child attributes
inflowstring

Cumulative net capital inflow up to this minute (negative values indicate net outflow), in units of 10,000

timestampstring

Minute timestamp (in seconds; int64 returned as a string)

line_nointeger

Intraday sequence number, starting from 1

Whale Docs