Rise/fall distribution buckets for a plate or a whole market
GET/api/v1.0/quote/heatmap/rise-fall-distributionRise/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
| Name | Type | In | Required | Description |
|---|---|---|---|---|
market | string | query | no | Market code. Provide this or plate_code (plate_code wins if both are set) |
plate_code | string | query | no | Plate 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>' | jqResponse parameters
| Name | Type | Description |
|---|---|---|
data.plate | string | Plate symbol used for the distribution |
data.ranges | object[] | Rise/fall distribution buckets |
data.ranges[].type | int | Bucket type |
data.ranges[].left_border | number | Left border in percent, same scale as OpenD left_border |
data.ranges[].right_border | number | Right border in percent, same scale as OpenD right_border |
data.ranges[].stock_count | int | Number of stocks in the bucket |
Errors
| ret_code | error.code | Description |
|---|---|---|
| 0 | — | Success |
| -3 | invalid_parameter | Missing or invalid parameter |
| -8 | unsupported | Not supported |
| -10 | no_data | No 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
}
]
}
}