diff --git a/catalyst/exchange/exchange.py b/catalyst/exchange/exchange.py index 6315c82d..dc5b6c7c 100644 --- a/catalyst/exchange/exchange.py +++ b/catalyst/exchange/exchange.py @@ -132,7 +132,7 @@ class Exchange: def get_symbol(self, asset): """ - The the exchange specific symbol of the specified market. + The exchange specific symbol of the specified market. Parameters ---------- @@ -226,18 +226,19 @@ class Exchange: """ asset = None - log.debug('searching asset {} on the server') + log.debug('searching asset {} on the server'.format(symbol)) asset = self._find_asset(asset, symbol, data_frequency, False) - log.debug('asset {} not found on the server, searching local assets') + log.debug('asset {} not found on the server, searching local ' + 'assets'.format(symbol)) asset = self._find_asset(asset, symbol, data_frequency, True) if not asset: all_values = list(self.assets.values()) + \ list(self.local_assets.values()) - supported_symbols = [ + supported_symbols = sorted([ asset.symbol for asset in all_values - ] + ]) raise SymbolNotFoundOnExchange( symbol=symbol,