Last but one, 3.1.7.. I did not pay much attention as connectivity in my area is a bitch. Connectivity can cause this. But when do you save bet in database? If you create new record in bet database before placing a bet and at completion/end, update that record accordingly, then we can track this type of error. Because there will be a record of bet even if that bet has not been successfully executed/placed. By record status we can know if bet placed, result received(win/lose), statistics updated, txn committed ..etc.. Just thinking loud.. let me know.
The latest version is 3.2.0, not 3.1.7. Bets are committed to the DB once the result is received. At this stage, the bot is not capable of committing a bet to the DB before sending it to the bot (the betID and site name are used as primary keys, committing a bet before the betid is known is going to crash things). This is a good idea though and will be looked at for v4 of the bot.
bet size is not odd. it is more than 8 satoshi. Scripts calculates expected profit greater than 1. chance is 88 so all the bets are more than 8 satoshi. Yes, rounding will affect but balance is always correct. Before placing a bet, I roundup to nearest satoshi. Attached screen shot was specifically for this message for short duration hence graph/chart is off by few satoshis. I have run this for few hundred bets and I get bigger difference in long run. If we calculate profit by taking difference between old and new balances, any rounding error will not affect chart/graph. If we calculate profit independently, then rounding will definitely impact. Once, I get back to betting, will test run for longer duration and higher amount..
No big deal.. we can live with this behavior.. :-)
The balance will be the same since it's received from the site after every bet. The profit for each bet I have to calculate manually, thus rounding errors can occur. If you scale your betting and the difference scales with it, it can help identify the problem. For example, on the best shown on your screenshot, the bot could be calculating the profit as 0.00000019295 but the site could be rounding it to 0.00000019, OR the other way around. over 8 bets, this is a difference of ~5 satoshi. If the bets are scaled and the difference scales with them, it's something else. If the difference doesn't scale, it's a rounding problem. Please test this.
Testing on another site could also help identify the problem, if you don't mind testing on PD or BetKing.