diff --git a/bitfinex/bitfinex_v2.py b/bitfinex/bitfinex_v2.py index e54464d..e4b7fc8 100644 --- a/bitfinex/bitfinex_v2.py +++ b/bitfinex/bitfinex_v2.py @@ -52,8 +52,12 @@ def api_call(self, method, param={}): # Public endpoints @staticmethod def tickers(symbol='btcusd'): - return requests.get('https://api.bitfinex.com/v2/tickers?symbols=t{}'. - format(symbol.upper())).json() + if type(symbol) is str: + symbols = 't{}'.format(symbol.upper()) + else: + symbols = ','.join(['t{}'.format(s.upper()) for s in symbol]) + return requests.get('https://api.bitfinex.com/v2/tickers?symbols={}'. + format(symbols)).json() @staticmethod def ticker(symbol='btcusd'):