Skip to content

期權全市場每日成交量或持倉量統計 ​

GET /api/v1.0/quote/option-market-statistic

期權全市場每日成交量或持倉量統計。option_market:US_SECURITY / US_INDEX / HK_SECURITY / HK_INDEX;data_type:VOLUME / OPEN_INTEREST。 時間範圍 begin_time / end_time(YYYY-MM-DD)不超過 365 天。返回每日 call/put/total 及 put/call 比,按交易日降序。 單標的歷史請用 quote.option_underlying_his_statistic。

請求參數 ​

參數類型位置必填說明
option_marketstring查詢是期權市場。US_SECURITY=美股股票 / US_INDEX=美股指數 / HK_SECURITY=港股股票 / HK_INDEX=港股指數
data_typestring查詢是統計類型。VOLUME=成交量 / OPEN_INTEREST=持倉量(延遲披露)
begin_timestring查詢是開始日期 YYYY-MM-DD。日期格式 YYYY-MM-DD,時區隨標的市場
end_timestring查詢是結束日期 YYYY-MM-DD,與 begin_time 間隔不超過 365 天。日期格式 YYYY-MM-DD,時區隨標的市場

請求示例 ​

bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/option-market-statistic?option_market=US_SECURITY&data_type=VOLUME' \
  -H 'Authorization: Bearer <AccessToken>' | jq

響應參數 ​

參數類型說明
data.statisticsobject[]
data.statistics[].timestring交易日 YYYY-MM-DD。日期格式 YYYY-MM-DD,時區隨標的市場
data.statistics[].timestampint交易日時間戳,Unix 微秒
data.statistics[].call_valuestringCall 合計(成交量或持倉量,由 data_type 決定)
data.statistics[].put_valuestringPut 合計
data.statistics[].total_valuestringCall+Put 合計
data.statistics[].ratiostringPut/Call 比值,call 為 0 時為 0

錯誤碼 ​

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

響應示例 ​

json
{
  "ret_code": 0,
  "ret_msg": "success",
  "data": {
    "statistics": [
      {
        "time": "example",
        "timestamp": 1710000000000000,
        "call_value": "example",
        "put_value": "example",
        "total_value": "example",
        "ratio": "example"
      }
    ]
  }
}