Skip to content

Broker Holding History ​

GET /api/v1.0/quote/{symbol}/broker-hold-detail

Get daily CCASS shareholding history for a specific broker (identified by broker_code from quote.broker_hold_ratio) on an HK stock. Returns daily holding shares, holding ratio (%), net share change, ratio change (%), and stock prices. HK market only.

Request ​

ParameterTypeInRequiredDescription
symbolstringpathyesHK stock symbol (path param, HK.* only), e.g. HK.00700
broker_codestringqueryyesCCASS broker code, e.g. C00019 / A00003 / A00004
countintquerynoNumber of historical trading days to return, default 30, range 1~90

Example ​

bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/US.AAPL/broker-hold-detail?broker_code=1&count=1' \
  -H 'Authorization: Bearer <AccessToken>' | jq

Response ​

FieldTypeDescription
data.itemsobject[]
data.broker_codestringBroker code
data.items[].timestampintegerTrading day timestamp in milliseconds
data.items[].dateintegerTrading date YYYY-MM-DD (HK timezone)
data.items[].hold_sharesstringShares held on the day
data.items[].hold_rationumberShareholding ratio on the day (percent)
data.items[].hold_shares_changestringNet change in shares held vs prior trading day
data.items[].hold_ratio_changenumberChange in holding ratio vs prior trading day (percentage points)
data.items[].close_pricenumberClose price on the day
data.items[].open_pricenumberOpen price on the day
data.items[].last_close_pricenumberPrevious trading day close price

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": {
    "broker_code": "example",
    "items": [
      {
        "timestamp": 0,
        "date": 0,
        "hold_shares": "example",
        "hold_ratio": "example",
        "hold_shares_change": "example",
        "hold_ratio_change": "example"
      }
    ]
  }
}