BitBotFactory / MikaLendingBot

Automated lending on Cryptocurrency exchanges Poloniex and Bitfinex
http://poloniexlendingbot.readthedocs.io/en/latest/index.html
MIT License
1.11k stars 344 forks source link

KeyError: u'USD_GBP' #629

Open kristapsk opened 6 years ago

kristapsk commented 6 years ago

From time to time I get this:

Error USD_GBP
Traceback (most recent call last):
  File "./lendingbot.py", line 114, in <module>
    Lending.lend_all()
  File "***/poloniexlendingbot/modules/Lending.py", line 252, in lend_all
    usable_currencies += lend_cur(cur, total_lent, lending_balances, ticker)
  File "***/modules/Lending.py", line 475, in lend_cur
    raise msg
KeyError: u'USD_GBP'

v326
 Unhandled error, please open a Github issue so we can fix it!

I have manually added EUR and GBP to BITFINEX.all_currencies in default.cfg.

Evanito commented 6 years ago

May be caused when trying to find rates when none are available on Bitfinex?

tuberculo commented 6 years ago

Probably related to #589.