Per-underlying daily IV/HV history
GET/api/v1.0/quote/{code}/option-underlying-his-volatilityPer-underlying daily IV/HV history. Omit end_time for the latest page; count default 60 (max 260). Returns trading day, IV, HV, underlying price. For latest snapshot use quote.option_underlying_overview.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
code | string | path | yes | Underlying symbol, e.g. US.AAPL |
count | int | query | no | Page size, default 60, max 260 |
end_time | string | query | no | End date YYYY-MM-DD; omit on first page for latest. Date YYYY-MM-DD in the security's market timezone |
index_option_type | int | query | no | HK HSI/HSCEI index-option type; omit for equities |
Example
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/US.AAPL/option-underlying-his-volatility' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse parameters
| Name | Type | Description |
|---|---|---|
data.volatilities | object[] | |
data.volatilities[].time | string | Trading day YYYY-MM-DD. Date YYYY-MM-DD in the security's market timezone |
data.volatilities[].timestamp | int | Trading-day timestamp , Unix microseconds |
data.volatilities[].iv | number | Implied volatility (percent) |
data.volatilities[].hv | number | Historical volatility (percent) |
data.volatilities[].underlying_price | string | Underlying price |
Errors
| ret_code | error.code | Description |
|---|---|---|
| 0 | — | Success |
| -3 | invalid_parameter | Missing or invalid parameter |
| -8 | unsupported | Not supported |
| -10 | no_data | No data |
Response example
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"volatilities": [
{
"time": "example",
"timestamp": 1710000000000000,
"iv": 1.2,
"hv": 1.2,
"underlying_price": "example"
}
]
}
}