Heat-map of industry / concept / theme plates in a market
GET/api/v1.0/quote/heatmapHeat-map of industry / concept / theme plates in a market, sorted by change rate / market cap / turnover / hot. Returns plate code and name, last price, change rate, turnover / volume, market cap, average PE, rise/fall/flat counts, leader stock, description. count defaults to 30 (max 200), matching OpenD. For rise/fall buckets use quote.heatmap.rise_fall_distribution.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
market | string | query | yes | Market code. SH and SZ share the A-share plate set |
plate_type | string | query | no | Plate type, default INDUSTRY. THEME maps to the special plate set |
sort_field | string | query | no | Sort field, default CHANGE_RATE |
sort_dir | string | query | no | Sort direction, default DESCENDING |
page_flag | string | query | no | Page cursor. Omit or pass empty on the first page; pass back pagination.page_flag. Stop only when pagination.completed is true |
page_size | int | query | no | Page size, default 30, max 200 |
Example
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/heatmap?market=HK' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse parameters
| Name | Type | Description |
|---|---|---|
data.items | object[] | |
data.items[].plate | string | Plate symbol, e.g. HK.BK1001 |
data.items[].plate_name | string | Plate name |
data.items[].cur_price | string | Plate last price |
data.items[].change_rate | number | Change rate in percent |
data.items[].turnover | string | Turnover |
data.items[].volume | string | Volume |
data.items[].market_val | number | Market cap |
data.items[].pe_avg | number | Average PE |
data.items[].rise_count | int | Number of rising constituents |
data.items[].fall_count | int | Number of falling constituents |
data.items[].equal_count | int | Number of unchanged constituents |
data.items[].leader_stock | int | Leader stock symbol |
data.items[].description | string | Plate description |
pagination.total | int | |
pagination.completed | bool | True when this is the last page. Stop paging only when completed is true |
pagination.page_flag | string | Next page cursor. Pass it back as page_flag while completed is false; empty on the last page |
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": {
"items": [
{
"plate": "example",
"plate_name": "example",
"cur_price": "example",
"change_rate": 1.2,
"turnover": "example",
"volume": "example",
"market_val": 1.2,
"pe_avg": 1.2,
"rise_count": 0,
"fall_count": 0,
"equal_count": 0,
"leader_stock": 0,
"description": "example"
}
]
},
"pagination": {
"page_flag": "",
"completed": true,
"total": 0
}
}