单标的期权每日成交量/持仓量历史
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"
}
]
}
}