hi
total_won
is the amount that has been won/lost from 12:00 midnight to 11:59:59 midnight today.
it resets at 12:00 midnight.
you can see the profit from the previous day in the statement.
if you want to stop the bot at a set profit over x number of days, then you would have to use a variable to record the profit/loss amounts.
mcbee