Rounding stored value, stake

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
rain91
Posts: 124
Joined: Tue Feb 07, 2017 7:11 pm

I get my lay bet stake value from an SV. For example, it is calculated: 0.524
But the bet placed with stake 0.58.

Is it because I don't use rounding, and this value is not a valid stake?
User avatar
Derek27
Posts: 25159
Joined: Wed Aug 30, 2017 11:44 am

rain91 wrote:
Sat Oct 28, 2023 10:25 am
I get my lay bet stake value from an SV. For example, it is calculated: 0.524
But the bet placed with stake 0.58.

Is it because I don't use rounding, and this value is not a valid stake?
Yes, you need to round to two decimal places when creating the stake SV, but I believe you can still fire bets of 0.524. BA should automatically round the stake.
rain91
Posts: 124
Joined: Tue Feb 07, 2017 7:11 pm

Ok, the problem is solved.

So i use the laystake from a stored value, for the lay odds i use the actual best lay odds. If i use the odds from an SV (=best lay odds), then there will be no time slip if the odds change in the meantime.
Post Reply

Return to “Bet Angel - Automation”