Skip to content

GET /api/v1/market/hsgt-flow

Shanghai/Shenzhen-Hong Kong Stock Connect flows.

Returns northbound and southbound flow data for the Shanghai/Shenzhen-Hong Kong Stock Connect.

Request

GET /api/v1/market/hsgt-flow

Headers

HeaderValue
F-API-KEYYour API key

Query Parameters

ParameterTypeRequiredFilterDescription
directionstringNoexactFlow direction (northbound, southbound)
trade_datestringNoexactTrade date (YYYY-MM-DD)
sourcestringNoexactData source
date_fromstringNorangeStart date
date_tostringNorangeEnd date
limitintegerNoMax rows per page (default 100, max 1000)
offsetintegerNoRows to skip (default 0)
sortstringNoSort field (default trade_date)
orderasc | descNoSort direction (default desc)

Example

Terminal window
curl -H "F-API-KEY: fk-xxxxx" \
"https://finance-api.xp-java.workers.dev/api/v1/market/hsgt-flow?direction=northbound&date_from=2024-01-01&date_to=2024-01-31"

Response

{
"code": 0,
"message": "ok",
"data": [
{
"direction": "northbound",
"trade_date": "2024-01-02",
"net_inflow": 5200000000,
"buy_amount": 18500000000,
"sell_amount": 13300000000,
"cumulative_inflow": 1850000000000,
"source": "exchange",
"updated_at": "2024-01-02T15:30:00Z"
}
],
"meta": {
"total": 22,
"limit": 100,
"offset": 0,
"has_more": false
}
}