Close Market with Greening delay

We were all new to Bet Angel once. Ask any question you like here and fellow forum members promise not to laugh. Betfair trading made simple.
Post Reply
moodysrus
Posts: 18
Joined: Tue Feb 23, 2021 4:51 am

Hey All,
I am noticing a behaviour which may be completely normal, but wanted to confirm.

When I place my original back bet, the time between the writing of the associated stored value and the bet placement is around 1 second (which is very reasonable). When I trigger a 'Close Trade on Selection with Greening' event, there is always a delay of four seconds between writing the stored value and the placing of the actual greening bet.

When trying to 'get out' of a market, those four seconds are expensive. In this case, $9.2 compared to $11 :-(

25/02/2021 16:10:00: [G_Auto] : Store Value (Shared) for 5. Tolerate: back = 2.9
25/02/2021 16:10:01: [G_Auto] : $ 1.00 Back bet placed on 5. Tolerate at 2.9. Fully matched at 2.92. Ref: 225350xxxxxx
...
25/02/2021 16:10:53: Guardian has detected that the market is suspended
25/02/2021 16:10:54: Guardian has detected that the market is in-play
25/02/2021 16:10:54: Guardian has detected that the market is now unsuspended
...
25/02/2021 16:11:39: [G_Auto] : Store Value for 5. Tolerate: close-slow = 9.2
25/02/2021 16:11:43: [G_Auto] : Placed closure bet with greening on 5. Tolerate by Laying 0.27 at 11
25/02/2021 16:11:50: [G_Auto] : Cancelling bets 225350xxxxxx
25/02/2021 16:11:51: Guardian has detected that the market is suspended

Is this delay expected? Maybe it takes that long to calculate the correct bet ??

Thanks in advance!

cheers
User avatar
Dallas
Posts: 23692
Joined: Sun Aug 09, 2015 10:57 pm

moodysrus wrote:
Thu Feb 25, 2021 6:53 am
Hey All,
I am noticing a behaviour which may be completely normal, but wanted to confirm.

When I place my original back bet, the time between the writing of the associated stored value and the bet placement is around 1 second (which is very reasonable). When I trigger a 'Close Trade on Selection with Greening' event, there is always a delay of four seconds between writing the stored value and the placing of the actual greening bet.

When trying to 'get out' of a market, those four seconds are expensive. In this case, $9.2 compared to $11 :-(

25/02/2021 16:10:00: [G_Auto] : Store Value (Shared) for 5. Tolerate: back = 2.9
25/02/2021 16:10:01: [G_Auto] : $ 1.00 Back bet placed on 5. Tolerate at 2.9. Fully matched at 2.92. Ref: 225350xxxxxx
...
25/02/2021 16:10:53: Guardian has detected that the market is suspended
25/02/2021 16:10:54: Guardian has detected that the market is in-play
25/02/2021 16:10:54: Guardian has detected that the market is now unsuspended
...
25/02/2021 16:11:39: [G_Auto] : Store Value for 5. Tolerate: close-slow = 9.2
25/02/2021 16:11:43: [G_Auto] : Placed closure bet with greening on 5. Tolerate by Laying 0.27 at 11
25/02/2021 16:11:50: [G_Auto] : Cancelling bets 225350xxxxxx
25/02/2021 16:11:51: Guardian has detected that the market is suspended

Is this delay expected? Maybe it takes that long to calculate the correct bet ??

Thanks in advance!

cheers
Yes that's perfectly normal

The log is painted every second (and new information is rounded) so sometimes you can perform 20 actions at the sametime and they all get the same time stamp, sometimes you can perform 2 actions just200ms apart and they can appear on the log with 1 second differences, for example,
16:01:26:412 (would appear in the log as 16:01:26)
16:01:26:608 (would appear in the log as 16:01:27)

Stored Values are set locally so will always appear the second the rule triggers (or next second due to rounding)
When you need to wait for BF to return some information ie, a matched bet that can usually put that on the next second in the log when placed pre-off.

However when the market is in-play and Betfair impose a delay on all bets you then have to add that on, so if there was a 5sec in-play bet delay on that market and you placed a bet with a Stored value (or signal)
The stored value would appear immediately, the matched bet would not show in the log till at least 5 secs later, maybe 6secs depending on the rounding.
moodysrus
Posts: 18
Joined: Tue Feb 23, 2021 4:51 am

Thanks Dallas, makes sense. I have been pre-race betting on Betfair for years and this is my first foray into in-play betting. I wasn't aware of that pesky in-play bet delay :)

Appreciate your help. I have spent the last few weeks reading through this forum and you are amazing with your help of others !!!

cheres
User avatar
Dallas
Posts: 23692
Joined: Sun Aug 09, 2015 10:57 pm

moodysrus wrote:
Thu Feb 25, 2021 11:17 am
Thanks Dallas, makes sense. I have been pre-race betting on Betfair for years and this is my first foray into in-play betting. I wasn't aware of that pesky in-play bet delay :)

Appreciate your help. I have spent the last few weeks reading through this forum and you are amazing with your help of others !!!

cheres
The delays differ sport to sport (and then in football by league to league) but there's some rough guides here
Sports (Tennis is now 3secs) - viewtopic.php?f=37&t=5164
Football - viewtopic.php?f=6&t=11148
Post Reply

Return to “Bet Angel for newbies / Getting started”