Regular-session top gainers/losers ranked by last-price change
GET/api/v1.0/quote/rank/top-moversRegular-session top gainers/losers ranked by last-price change ratio. Markets: HK/US/SH/SZ/SG/JP/AU/CA/MY; DESCENDING=gainers, ASCENDING=losers. For US pre/after/overnight sessions use the dedicated rank APIs.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
market | string | query | yes | Market code, e.g. HK / US / SH / SZ |
sort_dir | string | query | no | Sort direction. DESCENDING=gainers (default) / ASCENDING=losers |
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 10, max 200 |
price_filter | string | query | no | Price filter, same values as quote.rank.us_pre_market |
market_cap_min | number | query | no | Minimum market cap; omit for no lower bound |
market_cap_max | number | query | no | Maximum market cap; omit for no upper bound |
pe_min | number | query | no | Minimum PE; omit for no lower bound |
pe_max | number | query | no | Maximum PE; omit for no upper bound |
Example
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/rank/top-movers?market=HK' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse parameters
| Name | Type | Description |
|---|---|---|
data.items | object[] | |
data.items[].code | string | Symbol, e.g. US.AAPL / HK.00700 |
data.items[].name | string | Security name |
data.items[].cur_price | string | Last price |
data.items[].change_ratio | string | Change ratio in percent |
data.items[].change_amount | string | Change amount |
data.items[].turnover | string | Turnover |
data.items[].volume | string | Volume |
data.items[].turnover_ratio | string | Turnover ratio in percent |
data.items[].pe_ttm | number | PE TTM |
data.items[].amplitude | number | Amplitude in percent |
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": [
{
"code": "US.AAPL",
"name": "example",
"cur_price": "example",
"change_ratio": "example",
"change_amount": "example",
"turnover": "example",
"volume": "example",
"turnover_ratio": "example",
"pe_ttm": 1.2,
"amplitude": 1.2
}
]
},
"pagination": {
"page_flag": "",
"completed": true,
"total": 0
}
}