@classmethod
def get_inst_type(cls, inst):
    if ('market' in inst):
        return cls.CONF
    if isinstance(inst, dict):
        return cls.DICT
    if isinstance(inst, (list, tuple, pd.Index, np.ndarray)):
        return cls.LIST
    raise ValueError(f'Unknown instrument type {inst}')
@classmethod
def get_inst_type(cls, inst):
    if ('market' in inst):
        return cls.CONF
    if isinstance(inst, dict):
        return cls.DICT
    if isinstance(inst, (list, tuple, pd.Index, np.ndarray)):
        return cls.LIST
    raise ValueError(f'Unknown instrument type {inst}')