期權成交與持倉分佈
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"
}
]
}
}