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

Doubt about tickers #195

Open nairyash opened 3 years ago

nairyash commented 3 years ago

Hi ! Just started learning pyton and got to know about this project, really excited to follow and learn ! I just had one question/observation - the tickers.txt file - does the script refer to only the tickers mentioned in this document while scanning the market ?

Or does it by default scan all the cryptos listed?

celltronic01 commented 3 years ago

Hi

The whole idea of Custom Ticker List is to have a customized list. However, I also have an issue with that where if I enable Customer LIst = True, the bot stops working. KeyError BNBUSD and can't seem to get around it. I have turned if off {False}, and put my tickers in the signalsample.txt. However, It seems that it would be much better to have the capability of using tickers.txt for specifics

andybiochem commented 3 years ago

...KeyError BNBUSD and can't seem to get around it.

Did you remove the BNB token from your tickers.txt?

Line 139 in the moons.py code:

if historical_prices[hsp_head]['BNB' + PAIR_WITH]['time'] > datetime.now() ....etc

...seems to suggest that the BNBUSDT price has to have been pulled from binance previously.

If you've removed BNB from your tickers.txt you won't have a history for it to call, and the program will bork.

Solution - in moons.py replace the BNB on line 139 with one of your tokens specified in tickers, or add BNB back into tickers.