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"
      }
    ]
  }
}