期權 Gamma 敞口
GET/api/v1.0/quote/{code}/option-gamma-exposure獲取標的期權的 Gamma 敞口分佈和總 GEX 曲線。支持 HK / US / JP。指數標的傳 index_option_type。
請求參數
| 參數 | 類型 | 位置 | 必填 | 說明 |
|---|---|---|---|---|
code | string | 路徑 | 是 | 標的,例: US.AAPL / HK.00700 |
expire_time | string | 查詢 | 否 | 到期日 yyyy-MM-dd,可逗號分隔 |
index_option_type | int | 查詢 | 否 | 指數期權類型,正股不傳 |
filter_standard | string | 查詢 | 否 | ALL / STANDARD / NON_STANDARD |
point_count | int | 查詢 | 否 | 插值點數,默認 0,最大 20000 |
請求示例
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/US.AAPL/option-gamma-exposure' \
-H 'Authorization: Bearer <AccessToken>' | jq響應參數
| 參數 | 類型 | 說明 |
|---|---|---|
data.call_wall_strike | string | 看漲牆行權價 |
data.put_wall_strike | string | 看跌牆行權價 |
data.underlying_price | string | 計算時的標的價格 |
data.update_time | int | 更新時間,Unix 毫秒 |
data.zero_gamma_points | string[] | 零 Gamma 翻轉點 |
data.items[].strike_price | string | 行權價 |
data.items[].call_gex | string | Call GEX |
data.items[].put_gex | string | Put GEX |
data.items[].net_gex | string | Net GEX |
data.profile_points[].spot_price | string | 假設標的價格 |
data.profile_points[].aggregate_gex | string | 總 GEX |
data.interpolated_points[].spot_price | string | 插值價格 |
data.interpolated_points[].aggregate_gex | string | 插值總 GEX |
錯誤碼
| ret_code | error.code | 說明 |
|---|---|---|
| 0 | — | 成功 |
| -3 | invalid_parameter | 參數不合法 |
| -8 | unsupported | 不支持 |
| -10 | no_data | 沒有數據 |
響應示例
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"call_wall_strike": "180",
"put_wall_strike": "170",
"underlying_price": "175.5",
"items": [
{
"strike_price": "175",
"call_gex": "1.2",
"put_gex": "-0.4",
"net_gex": "0.8"
}
]
}
}