Skip to content

美股夜盤 ​

GET /api/v1.0/quote/rank/us-overnight

美股夜盤(24 小時 / 524)漲跌幅榜。按夜盤漲跌幅排序,返回夜盤價/漲跌幅/漲跌額/成交額量,以及正股收盤價與日內漲跌。 篩選與分頁同 quote.rank.us_pre_market。

請求參數 ​

參數類型位置必填說明
sort_dirstring查詢否排序方向。DESCENDING=領漲(默認)/ ASCENDING=領跌
page_flagstring查詢否翻頁標記。首頁不傳或傳空串;下一頁回傳上一頁響應 pagination.page_flag。只有 pagination.completed 為 true 時停止
page_sizeint查詢否返回條數,默認 10,最大 200
price_filterstring查詢否價格篩選,取值同 quote.rank.us_pre_market
market_cap_minnumber查詢否最小市值(元),不傳不限制
market_cap_maxnumber查詢否最大市值(元),不傳不限制
pe_minnumber查詢否最小市盈率,不傳不限制
pe_maxnumber查詢否最大市盈率,不傳不限制

請求示例 ​

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

響應參數 ​

參數類型說明
data.itemsobject[]
data.items[].codestring標的代碼,例: US.AAPL
data.items[].namestring標的名稱
data.items[].overnight_pricestring夜盤價
data.items[].overnight_change_ratiostring夜盤漲跌幅(百分數)
data.items[].overnight_change_amountstring夜盤漲跌額
data.items[].overnight_turnoverstring夜盤成交額
data.items[].overnight_volumestring夜盤成交量
data.items[].close_pricestring正股收盤價(常規時段最新價)
data.items[].change_ratiostring正股日內漲跌幅(百分數)
data.items[].change_amountstring正股日內漲跌額
pagination.totalint
pagination.completedbool是否已到末頁。只有 true 時停止翻頁
pagination.page_flagstring下一頁標記。completed 為 false 時回傳為下一次請求的 page_flag;末頁為空串

錯誤碼 ​

ret_codeerror.code說明
0—成功
-3invalid_parameter參數不合法
-8unsupported不支持
-10no_data沒有數據

響應示例 ​

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
  }
}