單標的期權每日成交量/持倉量歷史
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。
請求參數
| 參數 | 類型 | 位置 | 必填 | 說明 |
|---|---|---|---|---|
code | string | 路徑 | 是 | 標的代碼,例: US.AAPL |
begin_time | string | 查詢 | 是 | 開始日期 YYYY-MM-DD。日期格式 YYYY-MM-DD,時區隨標的市場 |
end_time | string | 查詢 | 是 | 結束日期 YYYY-MM-DD。日期格式 YYYY-MM-DD,時區隨標的市場 |
index_option_type | int | 查詢 | 否 | 港股恒指/國指指數期權類型,正股不傳 |
請求示例
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.statistics | object[] | |
data.statistics[].time | string | 交易日 YYYY-MM-DD。日期格式 YYYY-MM-DD,時區隨標的市場 |
data.statistics[].timestamp | int | 交易日時間戳,Unix 微秒 |
data.statistics[].call_volume | string | Call 成交量 |
data.statistics[].put_volume | string | Put 成交量 |
data.statistics[].call_open_interest | string | Call 持倉量(T-1 延遲) |
data.statistics[].put_open_interest | string | Put 持倉量(T-1 延遲) |
data.statistics[].underlying_price | string | 標的價格 |
錯誤碼
| ret_code | error.code | 說明 |
|---|---|---|
| 0 | — | 成功 |
| -3 | invalid_parameter | 參數不合法 |
| -8 | unsupported | 不支持 |
| -10 | no_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"
}
]
}
}