@staticmethod
def get_instruments_d(instruments, freq):
    '\n        Parse different types of input instruments to output instruments_d\n        Wrong format of input instruments will lead to exception.\n\n        '
    if isinstance(instruments, dict):
        if ('market' in instruments):
            instruments_d = Inst.list_instruments(instruments=instruments, freq=freq, as_list=False)
        else:
            instruments_d = instruments
    elif isinstance(instruments, (list, tuple, pd.Index, np.ndarray)):
        instruments_d = list(instruments)
    else:
        raise ValueError('Unsupported input type for param `instrument`')
    return instruments_d
Parse different types of input instruments to output instruments_d
Wrong format of input instruments will lead to exception.
@staticmethod
def get_instruments_d(instruments, freq):
    '\n        Parse different types of input instruments to output instruments_d\n        Wrong format of input instruments will lead to exception.\n\n        '
    if isinstance(instruments, dict):
        if ('market' in instruments):
            instruments_d = Inst.list_instruments(instruments=instruments, freq=freq, as_list=False)
        else:
            instruments_d = instruments
    elif isinstance(instruments, (list, tuple, pd.Index, np.ndarray)):
        instruments_d = list(instruments)
    else:
        raise ValueError('Unsupported input type for param `instrument`')
    return instruments_d