Skip to content

指定一級分類下的賽事/主題混排篩選項 ​

GET /api/v1.0/quote/event-contract/filter-competition

指定一級分類下的賽事/主題混排篩選項。category_id 來自 quote.event_contract_category。 返回按二級分類分組的 competition / topic 及 event_count。

請求參數 ​

參數類型位置必填說明
category_idint查詢是一級分類 ID,來自 quote.event_contract_category

請求示例 ​

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

響應參數 ​

參數類型說明
data.tag_filtersobject[]
data.tag_filters[].tagstring二級分類原始 tag
data.tag_filters[].tag_namestring二級分類英文名
data.tag_filters[].event_countint相關事件數量
data.tag_filters[].competitionsstring賽事原始值列表

錯誤碼 ​

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

響應示例 ​

json
{
  "ret_code": 0,
  "ret_msg": "success",
  "data": {
    "tag_filters": [
      {
        "tag": "example",
        "tag_name": "example",
        "event_count": 0,
        "competitions": "example"
      }
    ]
  }
}