it goes true the list and every time deletes on from the list and last one it gets the list back and starts all over again. I am just an amateur that try to run my trading bot. it's running for few hours and looping already for over a 1000 times than sometimes this gets triggered. when I restart the entire script manually the problem is gone. under except can I make a command that would just restart reset the entire script again?? or is there a better way
Any ideas are welcome
all = ['ETH/EUR', 'BTC/EUR', 'ADA/EUR', 'XRP/EUR', 'ETH/EUR', 'SOL/EUR', 'MANA/EUR',]
symbol = all[0]
def getsignals():
'''
# this function checks the symbols or tickers one by one for buying or
#selling triggers
'''
def runbot():
getsignals()
time.sleep(2)
while True:
try:
del all[0]
symbol = all[0]
print(F'-- The new symbol is now -- {symbol}')
runbot()
del all[0]
symbol = all[0]
print(F'-- The new symbol is now -- {symbol}')
runbot()
del all[0]
symbol = all[0]
print(F'-- The new symbol is now -- {symbol}')
runbot()`
del all[0]
symbol = all[0]
print(F'-- The new symbol is now -- {symbol}')
runbot()
del all[0]
symbol = all[0]
print(F'-- The new symbol is now -- {symbol}')
runbot()
del all[0]
symbol = all[0]
print(F'-- The new symbol is now -- {symbol}')
runbot()
all = ['ETH/EUR', 'BTC/EUR', 'ADA/EUR', 'XRP/EUR', 'ETH/EUR', 'SOL/EUR', 'MANA/EUR',]
print('------that was all of them------new round------')
except Exception as e:
print(e)
print('-----error terror-----')
playsound('problem.wav')
time.sleep(5