# Get Event Contract Series List

get_event_contract_series_list(category=None, tag=None)

  • Description

    Get the Series list of event contracts. A Series is a collection of related Events (e.g. a stock's GDP data release), filterable by top-level category and sub-tag.

  • Parameters

    Parameter Type Description
    category str Top-level category identifier, optional, e.g. 'Sports'
    tag str Sub-category identifier, optional, e.g. 'Baseball'
  • Return

    Parameter Type Description
    ret RET_CODE API call result
    data pd.DataFrame If ret == RET_OK, the Series list is returned
    str If ret != RET_OK, an error description is returned

    The DataFrame fields are as follows:

    Field Type Description
    series_code str Series contract code
    series_name str Series name (localized)
    category str Top-level category identifier
    tags list Sub-category identifier list (a series may belong to multiple tags)
    frequency str Frequency, see ECFrequency
  • Example

from moomoo import *

quote_ctx = OpenQuoteContext(host='127.0.0.1', port=11111)
ret, data = quote_ctx.get_event_contract_series_list(category='Sports')
if ret == RET_OK:
    print(data)
else:
    print('error:', data)
quote_ctx.close()
1
2
3
4
5
6
7
8
9
  • Output
                  series_code                series_name category        tags frequency
0      EC.KXUFCVICROUND.SERIES        UFC Round of Victory   Sports          []    CUSTOM
1  EC.KXNBASERIESSPREAD.SERIES      NBA Series Game Spread   Sports          []    CUSTOM
2    EC.KXWCUSAOPPONENT.SERIES      World Cup USA Opponent   Sports          []    CUSTOM
3         EC.KXNFLSBMVP.SERIES  Pro Football Championship MVP   Sports  [Football]    ANNUAL
4      EC.KXUCLTCORNERS.SERIES  Champions League Team Corners   Sports          []    CUSTOM
1
2
3
4
5
6

A total of 433 Series are returned under the Sports category; the above shows the first 5 rows as an example.

Interface Limitations

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