Skip to content

Rise/fall distribution buckets for a plate or a whole market ​

GET /api/v1.0/quote/heatmap/rise-fall-distribution

Rise/fall distribution buckets for a plate or a whole market. plate_code selects a plate; market alone uses the market-wide plate. Returns plate plus ranges (type / left_border / right_border / stock_count). type: RISE_LIMIT / POSITIVE_INFINITY / NORMAL_RANGE / NEGATIVE_INFINITY / FALL_LIMIT. For the plate heat map use quote.heatmap.

Parameters ​

NameTypeInRequiredDescription
marketstringquerynoMarket code. Provide this or plate_code (plate_code wins if both are set)
plate_codestringquerynoPlate symbol, e.g. HK.BK1001; provide this or market

Example ​

bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/heatmap/rise-fall-distribution?market=HK' \
  -H 'Authorization: Bearer <AccessToken>' | jq

Response parameters ​

NameTypeDescription
data.platestringPlate symbol used for the distribution
data.rangesobject[]Rise/fall distribution buckets
data.ranges[].typeintBucket type
data.ranges[].left_bordernumberLeft border in percent, same scale as OpenD left_border
data.ranges[].right_bordernumberRight border in percent, same scale as OpenD right_border
data.ranges[].stock_countintNumber of stocks in the bucket

Errors ​

ret_codeerror.codeDescription
0—Success
-3invalid_parameterMissing or invalid parameter
-8unsupportedNot supported
-10no_dataNo data

Response example ​

json
{
  "ret_code": 0,
  "ret_msg": "success",
  "data": {
    "plate": "example",
    "ranges": [
      {
        "type": 0,
        "left_border": 1.2,
        "right_border": 1.2,
        "stock_count": 0
      }
    ]
  }
}