期權大單/異動列表
GET/api/v1.0/quote/option-event期權大單/異動列表。option_market:US_SECURITY / US_INDEX / HK_SECURITY / HK_INDEX。count 默認 50、最大 300。 返回成交時間、方向、價量額、合約/標的、行權價到期、IV、希臘值、情緒。告警訂閱無 HTTP,未上架。
請求參數
| 參數 | 類型 | 位置 | 必填 | 說明 |
|---|---|---|---|---|
option_market | string | 查詢 | 是 | 期權市場。US_SECURITY / US_INDEX / HK_SECURITY / HK_INDEX |
page_size | int | 查詢 | 否 | 條數,默認 50,最大 300 |
page_flag | string | 查詢 | 否 | 翻頁標記。首頁不傳或傳空串;下一頁回傳上一頁響應 pagination.page_flag。只有 pagination.completed 為 true 時停止 |
code | string | 查詢 | 否 | 可選,限定標的,例: US.TSLA |
請求示例
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/option-event?option_market=US_SECURITY' \
-H 'Authorization: Bearer <AccessToken>' | jq響應參數
| 參數 | 類型 | 說明 |
|---|---|---|
data.events | object[] | |
data.events[].option | string | 期權合約代碼 |
data.events[].owner | string | 標的代碼 |
data.events[].symbol | string | 標的展示代碼,純代碼,例: TSLA |
data.events[].fill_timestamp | number | 成交時間,Unix 微秒 |
data.events[].ticker_type | int | 成交方向 BUY / SELL / NEUTRAL |
data.events[].price | string | 成交價 |
data.events[].volume | string | 成交量(張) |
data.events[].turnover | string | 成交額 |
data.events[].option_type | int | CALL / PUT |
data.events[].strike_price | string | 行權價 |
data.events[].strike_timestamp | int | 到期日時間戳,Unix 微秒 |
data.events[].dte | int | 距到期天數 |
data.events[].underlying_price | string | 標的價格 |
data.events[].otm | number | 價外比率(百分數) |
data.events[].bid_price | string | 買一價 |
data.events[].ask_price | string | 賣一價 |
data.events[].iv | number | 隱含波動率(百分數) |
data.events[].total_volume | string | 期權當日成交量 |
data.events[].total_open_interest | string | 期權當日持倉量 |
data.events[].vo_ratio | string | 量倉比(百分數) |
data.events[].delta | number | Delta |
data.events[].gamma | number | Gamma |
data.events[].vega | number | Vega |
data.events[].theta | number | Theta |
data.events[].rho | number | Rho |
data.update_timestamp | int | 列表更新時間戳,Unix 微秒 |
pagination.total | int | |
pagination.completed | bool | 是否已到末頁。只有 true 時停止翻頁 |
pagination.page_flag | string | 下一頁標記。completed 為 false 時回傳為下一次請求的 page_flag;末頁為空串 |
錯誤碼
| ret_code | error.code | 說明 |
|---|---|---|
| 0 | — | 成功 |
| -3 | invalid_parameter | 參數不合法 |
| -8 | unsupported | 不支持 |
| -10 | no_data | 沒有數據 |
響應示例
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"events": [
{
"option": "example",
"owner": "example",
"symbol": "US.AAPL",
"fill_timestamp": 1.2,
"ticker_type": 0,
"price": "example",
"volume": "example",
"turnover": "example",
"option_type": 0,
"strike_price": "example",
"strike_timestamp": 1710000000000000,
"dte": 0,
"underlying_price": "example",
"otm": 1.2,
"bid_price": "example",
"ask_price": "example",
"iv": 1.2,
"total_volume": "example",
"total_open_interest": "example",
"vo_ratio": "example",
"delta": 1.2,
"gamma": 1.2,
"vega": 1.2,
"theta": 1.2,
"rho": 1.2
}
],
"update_timestamp": 1710000000000000
},
"pagination": {
"page_flag": "",
"completed": true,
"total": 0
}
}