Whalepool / Bitfinex-Long-vs-Short

simple scripts to look at long vs short
17 stars 4 forks source link

I get an error "TypeError: can only join an iterable" #2

Open benwaldner opened 4 years ago

benwaldner commented 4 years ago

I got this error not sure if its my fault tho. I executed it in ipython and python3.

TypeError Traceback (most recent call last) /home/x/long-vs-short.py in 20 21 # Get Ticker + Currency data ---> 22 query = ",t".join(tpairs) 23 tdata = api_request("https://api.bitfinex.com/v2/tickers?symbols=t"+query) 24 currs = get_currencies( tdata )

TypeError: can only join an iterable

otccoin commented 4 years ago

Traceback (most recent call last): File "long-vs-short.py", line 22, in query = ",t".join(tpairs) TypeError: can only join an iterable

bearpig commented 4 years ago

what happens when you run, say the following as an example?

python long-vs-short.py -t BTCUSD, LTCUSD