指定一級分類下的賽事/主題混排篩選項
GET/api/v1.0/quote/event-contract/filter-competition指定一級分類下的賽事/主題混排篩選項。category_id 來自 quote.event_contract_category。 返回按二級分類分組的 competition / topic 及 event_count。
請求參數
| 參數 | 類型 | 位置 | 必填 | 說明 |
|---|---|---|---|---|
category_id | int | 查詢 | 是 | 一級分類 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_filters | object[] | |
data.tag_filters[].tag | string | 二級分類原始 tag |
data.tag_filters[].tag_name | string | 二級分類英文名 |
data.tag_filters[].event_count | int | 相關事件數量 |
data.tag_filters[].competitions | string | 賽事原始值列表 |
錯誤碼
| ret_code | error.code | 說明 |
|---|---|---|
| 0 | — | 成功 |
| -3 | invalid_parameter | 參數不合法 |
| -8 | unsupported | 不支持 |
| -10 | no_data | 沒有數據 |
響應示例
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"tag_filters": [
{
"tag": "example",
"tag_name": "example",
"event_count": 0,
"competitions": "example"
}
]
}
}