指定一级分类下的赛事/主题混排筛选项
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"
}
]
}
}