@staticmethod
def instruments(market='all', filter_pipe=None):
    "Get the general config dictionary for a base market adding several dynamic filters.\n\n        Parameters\n        ----------\n        market : str\n            market/industry/index shortname, e.g. all/sse/szse/sse50/csi300/csi500\n        filter_pipe : list\n            the list of dynamic filters\n\n        Returns\n        ----------\n        dict\n            dict of stockpool config\n            {`market`=>base market name, `filter_pipe`=>list of filters}\n\n            example :\n            {'market': 'csi500',\n             'filter_pipe': [{'filter_type': 'ExpressionDFilter',\n               'rule_expression': '$open<40',\n               'filter_start_time': None,\n               'filter_end_time': None,\n               'keep': False},\n              {'filter_type': 'NameDFilter',\n               'name_rule_re': 'SH[0-9]{4}55',\n               'filter_start_time': None,\n               'filter_end_time': None}]}\n        "
    if (filter_pipe is None):
        filter_pipe = []
    config = {'market': market, 'filter_pipe': []}
    for filter_t in filter_pipe:
        config['filter_pipe'].append(filter_t.to_config())
    return config
Get the general config dictionary for a base market adding several dynamic filters.

Parameters
----------
market : str
    market/industry/index shortname, e.g. all/sse/szse/sse50/csi300/csi500
filter_pipe : list
    the list of dynamic filters

Returns
----------
dict
    dict of stockpool config
    {`market`=>base market name, `filter_pipe`=>list of filters}

    example :
    {'market': 'csi500',
     'filter_pipe': [{'filter_type': 'ExpressionDFilter',
       'rule_expression': '$open<40',
       'filter_start_time': None,
       'filter_end_time': None,
       'keep': False},
      {'filter_type': 'NameDFilter',
       'name_rule_re': 'SH[0-9]{4}55',
       'filter_start_time': None,
       'filter_end_time': None}]}
@staticmethod
def instruments(market='all', filter_pipe=None):
    "Get the general config dictionary for a base market adding several dynamic filters.\n\n        Parameters\n        ----------\n        market : str\n            market/industry/index shortname, e.g. all/sse/szse/sse50/csi300/csi500\n        filter_pipe : list\n            the list of dynamic filters\n\n        Returns\n        ----------\n        dict\n            dict of stockpool config\n            {`market`=>base market name, `filter_pipe`=>list of filters}\n\n            example :\n            {'market': 'csi500',\n             'filter_pipe': [{'filter_type': 'ExpressionDFilter',\n               'rule_expression': '$open<40',\n               'filter_start_time': None,\n               'filter_end_time': None,\n               'keep': False},\n              {'filter_type': 'NameDFilter',\n               'name_rule_re': 'SH[0-9]{4}55',\n               'filter_start_time': None,\n               'filter_end_time': None}]}\n        "
    if (filter_pipe is None):
        filter_pipe = []
    config = {'market': market, 'filter_pipe': []}
    for filter_t in filter_pipe:
        config['filter_pipe'].append(filter_t.to_config())
    return config