Skip to content

單標的期權每日成交量/持倉量歷史 ​

GET /api/v1.0/quote/{code}/option-underlying-his-statistic

單標的期權每日成交量/持倉量歷史。symbol 為正股或指數(如 US.AAPL / HK.HSI)。港股恒指/國指需傳 index_option_type。 begin_time / end_time YYYY-MM-DD。持倉量為 T-1 延遲,最新交易日持倉可能為空。 最新一覽請用 quote.option_underlying_overview;波動率歷史請用 quote.option_underlying_his_volatility。

請求參數 ​

參數類型位置必填說明
codestring路徑是標的代碼,例: US.AAPL
begin_timestring查詢是開始日期 YYYY-MM-DD。日期格式 YYYY-MM-DD,時區隨標的市場
end_timestring查詢是結束日期 YYYY-MM-DD。日期格式 YYYY-MM-DD,時區隨標的市場
index_option_typeint查詢否港股恒指/國指指數期權類型,正股不傳

請求示例 ​

bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/US.AAPL/option-underlying-his-statistic?begin_time=value&end_time=value' \
  -H 'Authorization: Bearer <AccessToken>' | jq

響應參數 ​

參數類型說明
data.statisticsobject[]
data.statistics[].timestring交易日 YYYY-MM-DD。日期格式 YYYY-MM-DD,時區隨標的市場
data.statistics[].timestampint交易日時間戳,Unix 微秒
data.statistics[].call_volumestringCall 成交量
data.statistics[].put_volumestringPut 成交量
data.statistics[].call_open_intereststringCall 持倉量(T-1 延遲)
data.statistics[].put_open_intereststringPut 持倉量(T-1 延遲)
data.statistics[].underlying_pricestring標的價格

錯誤碼 ​

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

響應示例 ​

json
{
  "ret_code": 0,
  "ret_msg": "success",
  "data": {
    "statistics": [
      {
        "time": "example",
        "timestamp": 1710000000000000,
        "call_volume": "example",
        "put_volume": "example",
        "call_open_interest": "example",
        "put_open_interest": "example",
        "underlying_price": "example"
      }
    ]
  }
}