Skip to content

Stock Connect Holding History ​

GET /api/v1.0/quote/{symbol}/stock-connect/hold-ratio

Per-stock Stock Connect holding shares and ratio time series. HK = southbound, A-share = northbound. Time descending; end is exclusive. hold_ratio is percent. For cumulative flow use quote.stock_connect_stock_flow.

Request ​

ParameterTypeInRequiredDescription
symbolstringpathyesSymbol (path param), e.g. HK.00700 / SH.600519
endstringquerynoExclusive end date yyyy-MM-dd; omit for latest. Use page_flag when paging
limitintquerynoPage size, default 30, max 200
page_flagstringquerynoPagination cursor; omit on first page

Example ​

bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/US.AAPL/stock-connect/hold-ratio?end=1&limit=1&page_flag=1' \
  -H 'Authorization: Bearer <AccessToken>' | jq

Response ​

FieldTypeDescription
data.itemsobject[]
data.hold_coststringHolding cost in yuan
data.update_timeintegerUpdate time, unix seconds
data.items[].timestampintegerHolding date, unix seconds (day resolution)
data.items[].hold_sharesintegerHolding shares
data.items[].hold_ratiostringHolding ratio percent (e.g. 20.35 means 20.35%)
data.items[].net_buy_sharesintegerNet buy shares for the day
data.items[].net_buy_amountstringNet buy amount in yuan
data.items[].open_pricestringOpen price
data.items[].close_pricestringClose price
data.items[].last_close_pricestringPrevious close
pagination.completedstringTrue when this is the last page
pagination.page_flagstringNext page cursor (last timestamp, used as next date_end)

Errors ​

ret_codeerror.codeDescription
0—Success
-3invalid_parameterMissing or invalid parameter
-7invalid_symbolUnknown symbol
-8unsupportedMarket or product is not supported
-9permission_deniedMissing permission
-10no_dataNo data
-11rate_limitedToo many requests

Sample ​

json
{
  "ret_code": 0,
  "ret_msg": "success",
  "data": {
    "hold_cost": "example",
    "update_time": "example",
    "items": [
      {
        "timestamp": 0,
        "hold_shares": 0,
        "hold_ratio": "example",
        "net_buy_shares": 0,
        "net_buy_amount": "example",
        "open_price": "example"
      }
    ]
  },
  "pagination": {
    "completed": true,
    "page_flag": ""
  }
}