批量標的最新期權統計
POST/api/v1.0/quote/option-underlying-overview批量標的最新期權統計(成交量/持倉量/IV/HV)。symbols 最多 500 個。港股恒指/國指可傳 index_option_type。 返回每標的 call/put 成交與持倉、IV/IV Rank/Percentile、HV 多週期、前一日 IV。 歷史序列請用 quote.option_underlying_his_statistic / quote.option_underlying_his_volatility。
請求參數
| 參數 | 類型 | 位置 | 必填 | 說明 |
|---|---|---|---|---|
codes | string | 請求體 | 是 | 標的代碼列表,最多 500,例: ["US.AAPL","US.TSLA"] |
index_option_type | int | 請求體 | 否 | 港股恒指/國指指數期權類型,正股不傳 |
請求示例
bash
curl -X POST 'https://webapi.moomoo.com/api/v1.0/quote/option-underlying-overview' -H 'Content-Type: application/json' -d '{}' \
-H 'Authorization: Bearer <AccessToken>' | jq響應參數
| 參數 | 類型 | 說明 |
|---|---|---|
data.items | object[] | |
data.items[].code | string | 標的代碼 |
data.items[].name | string | 標的名稱 |
data.items[].call_volume | string | Call 成交量 |
data.items[].put_volume | string | Put 成交量 |
data.items[].call_open_interest | string | Call 持倉量(T-1) |
data.items[].put_open_interest | string | Put 持倉量(T-1) |
data.items[].iv | number | 隱含波動率(百分數) |
data.items[].iv_rank | number | IV Rank(百分數) |
data.items[].iv_percentile | number | IV Percentile(百分數) |
data.items[].pre_iv | number | 前一交易日 IV(百分數) |
data.items[].historical_volatilities | object[] | |
data.items[].historical_volatilities[].time_range | int | HV 週期天數:30/60/90/120/365/1095 |
data.items[].historical_volatilities[].hv | number | 歷史波動率(百分數) |
錯誤碼
| ret_code | error.code | 說明 |
|---|---|---|
| 0 | — | 成功 |
| -3 | invalid_parameter | 參數不合法 |
| -8 | unsupported | 不支持 |
| -10 | no_data | 沒有數據 |
響應示例
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"items": [
{
"code": "US.AAPL",
"name": "example",
"call_volume": "example",
"put_volume": "example",
"call_open_interest": "example",
"put_open_interest": "example",
"iv": 1.2,
"iv_rank": 1.2,
"iv_percentile": 1.2,
"pre_iv": 1.2,
"historical_volatilities": "example"
}
]
}
}