def fetch_tickers_by_type(self, type, symbols=None, params={}):
    self.load_markets()
    method = (type + 'GetInstrumentsTicker')
    response = getattr(self, method)(params)
    result = {}
    for i in range(0, len(response)):
        ticker = self.parse_ticker(response[i])
        symbol = ticker['symbol']
        result[symbol] = ticker
    return self.filter_by_array(result, 'symbol', symbols)
def fetch_tickers_by_type(self, type, symbols=None, params={}):
    self.load_markets()
    method = (type + 'GetInstrumentsTicker')
    response = getattr(self, method)(params)
    result = {}
    for i in range(0, len(response)):
        ticker = self.parse_ticker(response[i])
        symbol = ticker['symbol']
        result[symbol] = ticker
    return self.filter_by_array(result, 'symbol', symbols)