CyberPunkMetalHead / Binance-volatility-trading-bot

This is a fully functioning Binance trading bot that measures the volatility of every coin on Binance and places trades with the highest gaining coins If you like this project consider donating though the Brave browser to allow me to continuously improve the script.
MIT License
3.39k stars 774 forks source link

Market looks ok #217

Open m3a4s opened 2 years ago

m3a4s commented 2 years ago

when Market looks ok, bot is running...

this error comes out:

Traceback (most recent call last): File "c:/Users/pc/Desktop/TradingTry/Binance Detect Moonings.py", line 597, in orders, last_price, volume = buy() File "c:/Users/pc/Desktop/TradingTry/Binance Detect Moonings.py", line 294, in buy volume, last_price = convert_volume() File "c:/Users/pc/Desktop/TradingTry/Binance Detect Moonings.py", line 255, in convert_volume volatile_coins, number_of_coins, last_price = wait_for_price() File "c:/Users/pc/Desktop/TradingTry/Binance Detect Moonings.py", line 139, in wait_for_price if historical_prices[hsp_head]['BNB' + PAIR_WITH]['time'] > datetime.now() - timedelta(minutes=float(TIME_DIFFERENCE / RECHECK_INTERVAL)): KeyError: 'BNBUSDT'

what's the solution ?

Hedgenious commented 2 years ago

Have you found the answer?

ddkargas commented 2 years ago

You must have BNB symbol in files tickers & signalsample, after this ishould work!

Maybe clear cache ( delete files in dir pycache ) help...

sungseh commented 2 years ago

Make sure you have BNB as one of the tickers in tickers.txt. It worked for me