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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doubt about tickers

nairyash opened this issue · comments

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?

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

...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.