Skip to content

事件合約 Series 列表 ​

GET /api/v1.0/quote/event-contract/series

事件合約 Series 列表。可按 category_id / sub_category_id 過濾(來自 quote.event_contract_category)。 返回 series_code(KS. 前綴)、series_name。不傳篩選則返回當前上線的全部 series。 某 Series 下的事件請用 quote.event_contract_events。

請求參數 ​

參數類型位置必填說明
category_idint查詢否一級分類 ID,來自 quote.event_contract_category;不傳返回全部
sub_category_idint查詢否二級分類 ID,優先級高於 category_id

請求示例 ​

bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/event-contract/series' \
  -H 'Authorization: Bearer <AccessToken>' | jq

響應參數 ​

參數類型說明
data.seriesobject[]
data.series[].series_codestringSeries 代碼,例: KS.KXNFLGAME
data.series[].series_namestringSeries 英文名

錯誤碼 ​

ret_codeerror.code說明
0—成功
-3invalid_parameter參數不合法
-8unsupported不支持
-10no_data沒有數據

響應示例 ​

json
{
  "ret_code": 0,
  "ret_msg": "success",
  "data": {
    "series": [
      {
        "series_code": "example",
        "series_name": "example"
      }
    ]
  }
}