期权成交与持仓分布
GET/api/v1.0/quote/{code}/option-trade-interest-distribution按行权价返回成交量分布(VOLUME)或持仓量分布(OPEN_INTEREST)。支持 HK / US / JP。
请求参数
| 参数 | 类型 | 位置 | 必填 | 说明 |
|---|---|---|---|---|
code | string | 路径 | 是 | 标的,例: US.AAPL |
data_type | string | 查询 | 否 | VOLUME / OPEN_INTEREST |
expire_time | string | 查询 | 否 | 到期日 yyyy-MM-dd,可逗号分隔 |
index_option_type | int | 查询 | 否 | 指数期权类型,正股不传 |
filter_standard | string | 查询 | 否 | ALL / STANDARD / NON_STANDARD |
sort_type | string | 查询 | 否 | STRIKE_PRICE / CALL_VOLUME / PUT_VOLUME / TOTAL_VOLUME |
is_asc | bool | 查询 | 否 | 是否升序,默认 true |
请求示例
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/US.AAPL/option-trade-interest-distribution' \
-H 'Authorization: Bearer <AccessToken>' | jq响应参数
| 参数 | 类型 | 说明 |
|---|---|---|
data.data_type | string | VOLUME / OPEN_INTEREST |
data.summary.call_total | string | 看涨合计 |
data.summary.put_total | string | 看跌合计 |
data.summary.total | string | 合计 |
data.items[].strike_price | string | 行权价 |
data.items[].call_value | string | 看涨量 |
data.items[].call_in_the_money | bool | 看涨是否价内 |
data.items[].put_value | string | 看跌量 |
data.items[].put_in_the_money | bool | 看跌是否价内 |
data.items[].total_value | string | 行权价合计 |
错误码
| ret_code | error.code | 说明 |
|---|---|---|
| 0 | — | 成功 |
| -3 | invalid_parameter | 参数不合法 |
| -8 | unsupported | 不支持 |
| -10 | no_data | 没有数据 |
响应示例
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"data_type": "VOLUME",
"summary": {
"total": "18"
},
"items": [
{
"strike_price": "175",
"call_value": "6",
"put_value": "4",
"total_value": "10"
}
]
}
}