Skip to content

US after-hours movers ranked by after-hours change ratio ​

GET /api/v1.0/quote/rank/us-after-hours

US after-hours movers ranked by after-hours change ratio. Filters and pagination match quote.rank.us_pre_market.

Parameters ​

NameTypeInRequiredDescription
sort_dirstringquerynoSort direction. DESCENDING=gainers (default) / ASCENDING=losers
page_flagstringquerynoPage cursor. Omit or pass empty on the first page; pass back pagination.page_flag. Stop only when pagination.completed is true
page_sizeintquerynoPage size, default 10, max 200
price_filterstringquerynoPrice filter, same values as quote.rank.us_pre_market
market_cap_minnumberquerynoMinimum market cap; omit for no lower bound
market_cap_maxnumberquerynoMaximum market cap; omit for no upper bound
pe_minnumberquerynoMinimum PE; omit for no lower bound
pe_maxnumberquerynoMaximum PE; omit for no upper bound

Example ​

bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/rank/us-after-hours' \
  -H 'Authorization: Bearer <AccessToken>' | jq

Response parameters ​

NameTypeDescription
data.itemsobject[]
data.items[].codestringSymbol, e.g. US.AAPL
data.items[].namestringSecurity name
data.items[].after_hours_pricestringAfter-hours price
data.items[].after_hours_change_ratiostringAfter-hours change ratio in percent
data.items[].after_hours_change_amountstringAfter-hours change amount
data.items[].after_hours_turnoverstringAfter-hours turnover
data.items[].after_hours_volumestringAfter-hours volume
data.items[].close_pricestringRegular-session last price
data.items[].change_ratiostringRegular-session change ratio in percent
data.items[].change_amountstringRegular-session change amount
pagination.totalint
pagination.completedboolTrue when this is the last page. Stop paging only when completed is true
pagination.page_flagstringNext page cursor. Pass it back as page_flag while completed is false; empty on the last page

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": {
    "items": [
      {
        "code": "US.AAPL",
        "name": "example",
        "after_hours_price": "example",
        "after_hours_change_ratio": "example",
        "after_hours_change_amount": "example",
        "after_hours_turnover": "example",
        "after_hours_volume": "example",
        "close_price": "example",
        "change_ratio": "example",
        "change_amount": "example"
      }
    ]
  },
  "pagination": {
    "page_flag": "",
    "completed": true,
    "total": 0
  }
}