Events under a series
GET/api/v1.0/quote/event-contract/eventsEvents under a series. series is required, e.g. KS.KXNFLGAME. offset+count pagination, count default 100 (max 1000). Returns event_code / event_name / icon_url. For contracts under an event use quote.event_contract.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
series | string | query | yes | Series symbol, e.g. KS.KXNFLGAME |
page_flag | string | query | no | Page cursor. Omit or pass empty on the first page; pass back pagination.page_flag. Stop only when pagination.completed is true |
page_size | int | query | no | Page size, default 100, max 1000 |
Example
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/event-contract/events?series=value' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse parameters
| Name | Type | Description |
|---|---|---|
data.events | object[] | |
data.events[].event_code | string | Event symbol, e.g. KS.KXNFLGAME-26SEP12PITNE |
data.events[].event_name | string | Event English name |
data.events[].icon_url | string | Event icon URL |
pagination.total | int | |
pagination.completed | bool | True when this is the last page. Stop paging only when completed is true |
pagination.page_flag | string | Next page cursor. Pass it back as page_flag while completed is false; empty on the last page |
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": {
"events": [
{
"event_code": "example",
"event_name": "example",
"icon_url": "example"
}
]
},
"pagination": {
"page_flag": "",
"completed": true,
"total": 0
}
}