Competition/topic filter mix under a primary category
GET/api/v1.0/quote/event-contract/filter-competitionCompetition/topic filter mix under a primary category. category_id comes from quote.event_contract_category. Returns competition / topic items grouped by subcategory, with event_count.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
category_id | int | query | yes | Primary category id from quote.event_contract_category |
Example
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/event-contract/filter-competition?category_id=1' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse parameters
| Name | Type | Description |
|---|---|---|
data.tag_filters | object[] | |
data.tag_filters[].tag | string | Raw subcategory tag |
data.tag_filters[].tag_name | string | Subcategory English name |
data.tag_filters[].event_count | int | Related event count |
data.tag_filters[].competitions | string | Raw competition values |
Errors
| ret_code | error.code | Description |
|---|---|---|
| 0 | — | Success |
| -3 | invalid_parameter | Missing or invalid parameter |
| -8 | unsupported | Not supported |
| -10 | no_data | No data |
Response example
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"tag_filters": [
{
"tag": "example",
"tag_name": "example",
"event_count": 0,
"competitions": "example"
}
]
}
}