Skip to content

期權大單/異動列表 ​

GET /api/v1.0/quote/option-event

期權大單/異動列表。option_market:US_SECURITY / US_INDEX / HK_SECURITY / HK_INDEX。count 默認 50、最大 300。 返回成交時間、方向、價量額、合約/標的、行權價到期、IV、希臘值、情緒。告警訂閱無 HTTP,未上架。

請求參數 ​

參數類型位置必填說明
option_marketstring查詢是期權市場。US_SECURITY / US_INDEX / HK_SECURITY / HK_INDEX
page_sizeint查詢否條數,默認 50,最大 300
page_flagstring查詢否翻頁標記。首頁不傳或傳空串;下一頁回傳上一頁響應 pagination.page_flag。只有 pagination.completed 為 true 時停止
codestring查詢否可選,限定標的,例: 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.eventsobject[]
data.events[].optionstring期權合約代碼
data.events[].ownerstring標的代碼
data.events[].symbolstring標的展示代碼,純代碼,例: TSLA
data.events[].fill_timestampnumber成交時間,Unix 微秒
data.events[].ticker_typeint成交方向 BUY / SELL / NEUTRAL
data.events[].pricestring成交價
data.events[].volumestring成交量(張)
data.events[].turnoverstring成交額
data.events[].option_typeintCALL / PUT
data.events[].strike_pricestring行權價
data.events[].strike_timestampint到期日時間戳,Unix 微秒
data.events[].dteint距到期天數
data.events[].underlying_pricestring標的價格
data.events[].otmnumber價外比率(百分數)
data.events[].bid_pricestring買一價
data.events[].ask_pricestring賣一價
data.events[].ivnumber隱含波動率(百分數)
data.events[].total_volumestring期權當日成交量
data.events[].total_open_intereststring期權當日持倉量
data.events[].vo_ratiostring量倉比(百分數)
data.events[].deltanumberDelta
data.events[].gammanumberGamma
data.events[].veganumberVega
data.events[].thetanumberTheta
data.events[].rhonumberRho
data.update_timestampint列表更新時間戳,Unix 微秒
pagination.totalint
pagination.completedbool是否已到末頁。只有 true 時停止翻頁
pagination.page_flagstring下一頁標記。completed 為 false 時回傳為下一次請求的 page_flag;末頁為空串

錯誤碼 ​

ret_codeerror.code說明
0—成功
-3invalid_parameter參數不合法
-8unsupported不支持
-10no_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
  }
}