i made profit today but algo shows me failed to get live pnl. Help me, my code is:- current_time = datetime.datetime.now().time()
if current_time < datetime.time(9,15):
print(“wait for market to open”,current_time)
continue
if (current_time > datetime.time(15, 15)):
order_details = tsl.cancel_all_orders()
print("Market is over, see you tomorrow",current_time)
break
for stock_name in watchlist:
time.sleep(0.05)
print(stock_name)
