# Get Event Contract Milestone List

get_event_contract_milestone_list(category=None, competition=None, related_event=None, next_page=None, count=None)

  • Description

    Get the milestone list of event contracts. A milestone is an important time node for event-type event contracts (such as a match). It supports filtering by category, competition, and related event, with pagination.

  • Parameters

    Parameter Type Description
    category str Top-level category, e.g. 'Sports'
    competition str Competition name, from filter_competition
    related_event str Related event code
    next_page str Pagination marker, pass None for the first page
    count int Maximum number of items to return
  • Return

    Parameter Type Description
    ret RET_CODE API call result
    data pd.DataFrame When ret == RET_OK, returns the milestone list
    str When ret != RET_OK, returns the error description
    next_page str Pagination marker for the next page; empty means no next page

    The returned DataFrame fields are as follows:

    Field Type Description
    milestone_code str Milestone code
    title str Milestone name (localized)
    category str Top-level category identifier
    type str Milestone type, see ECMilestoneType
    start_date str Start time
    end_date str End time
    primary_event_code str Primary event code
    related_events list Related event code list
    notification_message str Notification message (localized)
  • Example

from moomoo import *

quote_ctx = OpenQuoteContext(host='127.0.0.1', port=11111)
ret, data, next_page = quote_ctx.get_event_contract_milestone_list(
    category='Sports', count=5
)
if ret == RET_OK:
    print(data)
    print('next_page:', next_page)
else:
    print('error:', data)
quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
11
12
  • Output
                                       milestone_code             title category                         type  start_date end_date                  primary_event_code                                  related_events notification_message
0  EC.d8a4c769-6d6b-45b0-90c0-aaa40ffefbbe.MILESTONE     France vs Spain   Sports  SOCCER_TOURNAMENT_MULTI_LEG  2026-07-14      N/A  EC.KXWCADVANCE-26JUL14FRAESP.EVENT  [EC.KXWCADVANCE-26JUL14FRAESP.EVENT, EC.KXWCGAME-26JUL14FRAESP.EVENT, ...]  The game is about to begin.
1  EC.9ed9d180-9fa6-4a26-9b75-36e9bfb1081a.MILESTONE  England vs Argentina   Sports  SOCCER_TOURNAMENT_MULTI_LEG  2026-07-15      N/A  EC.KXWCADVANCE-26JUL15ENGARG.EVENT  [EC.KXWCADVANCE-26JUL15ENGARG.EVENT, EC.KXWCGAME-26JUL15ENGARG.EVENT, ...]  The game is about to begin.
next_page: 5
1
2
3
4

Interface Limitations

  • A maximum of 10 requests per 30 seconds for the Get Event Contract Milestone List interface