US overnight
GET/api/v1.0/quote/rank/us-overnightUS overnight (24h / 524) movers ranked by overnight change ratio. Filters and pagination match quote.rank.us_pre_market.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
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/us-overnight' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse parameters
| Name | Type | Description |
|---|---|---|
data.items | object[] | |
data.items[].code | string | Symbol, e.g. US.AAPL |
data.items[].name | string | Security name |
data.items[].overnight_price | string | Overnight price |
data.items[].overnight_change_ratio | string | Overnight change ratio in percent |
data.items[].overnight_change_amount | string | Overnight change amount |
data.items[].overnight_turnover | string | Overnight turnover |
data.items[].overnight_volume | string | Overnight volume |
data.items[].close_price | string | Regular-session last price |
data.items[].change_ratio | string | Regular-session change ratio in percent |
data.items[].change_amount | string | Regular-session change amount |
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",
"overnight_price": "example",
"overnight_change_ratio": "example",
"overnight_change_amount": "example",
"overnight_turnover": "example",
"overnight_volume": "example",
"close_price": "example",
"change_ratio": "example",
"change_amount": "example"
}
]
},
"pagination": {
"page_flag": "",
"completed": true,
"total": 0
}
}