Closed costicraciunescu closed 3 years ago
Same problem ;
Traceback (most recent call last):
File "C:\binance-bot\Binance Detect Moonings.py", line 592, in <module>
orders, last_price, volume = buy()
File "C:\binance-bot\Binance Detect Moonings.py", line 292, in buy
volume, last_price = convert_volume()
File "C:\binance-bot\Binance Detect Moonings.py", line 274, in convert_volume
volume[coin] = float(QUANTITY / float(last_price[coin]['price']))
KeyError: 'TOMOUSDT'
anyone who can help ?
Same problem on linux:
Traceback (most recent call last):
File "/home/cantos/Downloads/Binance-volatility-trading-bot-main/Binance Detect Moonings.py", line 592, in <module>
orders, last_price, volume = buy()
File "/home/cantos/Downloads/Binance-volatility-trading-bot-main/Binance Detect Moonings.py", line 292, in buy
volume, last_price = convert_volume()
File "/home/cantos/Downloads/Binance-volatility-trading-bot-main/Binance Detect Moonings.py", line 274, in convert_volume
volume[coin] = float(QUANTITY / float(last_price[coin]['price']))
KeyError: 'ICPUSDT'
I believe this is happening because of external_signals() being used to add coins to the volitile_coins list, but not to the historical_prices list - which causes the key error when referencing the coin in last_price (since that's built from historical_prices).
Created PR #181 as a quick-fix similar to the previous try/except fixes
Not an issue, check faq, docs and discord.
Hi, My base currency is set to EUR and from time to time I get the below error for various pairs and the bot stops completely
Here is my config.yml
Any hints would be much appreciated
Thanks, C.