Does anyone know why this happened?

We've gone to the dogs.
Post Reply
eatyourgreens
Posts: 243
Joined: Sun Feb 18, 2018 12:53 am

Hi all,
I have been running a bot on the greyhounds every day for the past couple of months, and it has been working flawlessly, ......and even making a small profit! ...........but a flaw come to light on the first three uk races this morning, I have checked the logs for the races and I cant work out what happened (I will attach the latter part of the log from one of the races to this post, but the other two are vitually the same).

Basically, the bot will place lay bets into the market, very near off time, if conditions are met. The bets are fill/kill (7secs), and have an offset with greening. There is also a take sp rule so any unmatched offsets will take sp. I know that sometimes, I still have "active" fill/kills in the market when it is suspended, This has never been a problem as the stake is returned when the market is settled.


However, on the first three races this morning, my lay bets that were still active in the market when the market was suspended (off time), were matched when the market was suspended, some quite a few seconds after suspension. According to the log, after suspension, the lays were matched, but no offset could be placed because the market was suspended. I stopped running the bot after the three races to see if I could work out what happened, and I am hoping that some can help shed some light on it, thanks.

This is the final part of the log just before suspension :-

02/11/2022 11:00:56: [G_Auto 1] : Modify bet persistence 286397366793 from 'Cancel' to 'Take SP'


02/11/2022 11:01:02: Guardian has detected that the market is suspended
02/11/2022 11:01:02: [G_Auto 1] : WARNING: The Betfair API was unable to process the bet cancellation request. Second attempt activated. (Ref: 286397365671)
02/11/2022 11:01:05: [G_Auto 1] : £ 2.73 of unmatched bet (Ref:286397365671) was filled before remainder was killed.
02/11/2022 11:01:05: [G_Auto 1] : WARNING: The Betfair API was unable to process the bet cancellation request. Second attempt activated. (Ref: 286397365614)
02/11/2022 11:01:06: [G_Auto 1] : Unable to place back bet on 2. Britbull Casper at 5.6. The order cannot be processed as the market is suspended.
02/11/2022 11:01:09: [G_Auto 1] : £ 0.93 of unmatched bet (Ref:286397365614) was filled before remainder was killed.
02/11/2022 11:01:09: [G_Auto 1] : Unable to place back bet on 5. Knockard Jett at 14. The order cannot be processed as the market is suspended.
02/11/2022 11:01:09: [G_Auto 1] : WARNING: The Betfair API was unable to process the bet cancellation request. Second attempt activated. (Ref: 286397366789)
02/11/2022 11:01:12: [G_Auto 1] : £ 2.28 of unmatched bet (Ref:286397366789) was filled before remainder was killed.
02/11/2022 11:01:13: [G_Auto 1] : WARNING: The Betfair API was unable to process the bet cancellation request. Second attempt activated. (Ref: 286397366793)
02/11/2022 11:01:13: [G_Auto 1] : Unable to place back bet on 4. Honeygar Pilot at 6.8. The order cannot be processed as the market is suspended.
02/11/2022 11:01:16: [G_Auto 1] : £ 1.72 of unmatched bet (Ref:286397366793) was filled before remainder was killed.
02/11/2022 11:01:16: [G_Auto 1] : WARNING: The Betfair API was unable to process the bet cancellation request. Second attempt activated. (Ref: 286397366167)
02/11/2022 11:01:16: [G_Auto 1] : Unable to place back bet on 1. Anmima Biddy at 8.2. The order cannot be processed as the market is suspended.
02/11/2022 11:01:19: [G_Auto 1] : £ 3.51 of unmatched bet (Ref:286397366167) was filled before remainder was killed.
02/11/2022 11:01:19: [G_Auto 1] : Unable to place back bet on 3. Clydagh Tommy at 4.7. The order cannot be processed as the market is suspended.

Lay bets being matched when the market is suspended, but offsets cant be placed because the market is suspended !! ?????

Please help me understand :-)
thanx,
Have a nice day! :-)

PS whilst writing this I think I might have an answer myself, but I will wait and see if any one replies,
Thanx again for taking the time to read.
Anbell
Posts: 2004
Joined: Fri Apr 05, 2019 2:31 am

eatyourgreens wrote:
Wed Nov 02, 2022 11:30 pm
Hi all,
I have been running a bot on the greyhounds every day for the past couple of months, and it has been working flawlessly, ......and even making a small profit! ...........but a flaw come to light on the first three uk races this morning, I have checked the logs for the races and I cant work out what happened (I will attach the latter part of the log from one of the races to this post, but the other two are vitually the same).

Basically, the bot will place lay bets into the market, very near off time, if conditions are met. The bets are fill/kill (7secs), and have an offset with greening. There is also a take sp rule so any unmatched offsets will take sp. I know that sometimes, I still have "active" fill/kills in the market when it is suspended, This has never been a problem as the stake is returned when the market is settled.


However, on the first three races this morning, my lay bets that were still active in the market when the market was suspended (off time), were matched when the market was suspended, some quite a few seconds after suspension. According to the log, after suspension, the lays were matched, but no offset could be placed because the market was suspended. I stopped running the bot after the three races to see if I could work out what happened, and I am hoping that some can help shed some light on it, thanks.

This is the final part of the log just before suspension :-

02/11/2022 11:00:56: [G_Auto 1] : Modify bet persistence 286397366793 from 'Cancel' to 'Take SP'


02/11/2022 11:01:02: Guardian has detected that the market is suspended
02/11/2022 11:01:02: [G_Auto 1] : WARNING: The Betfair API was unable to process the bet cancellation request. Second attempt activated. (Ref: 286397365671)
02/11/2022 11:01:05: [G_Auto 1] : £ 2.73 of unmatched bet (Ref:286397365671) was filled before remainder was killed.
02/11/2022 11:01:05: [G_Auto 1] : WARNING: The Betfair API was unable to process the bet cancellation request. Second attempt activated. (Ref: 286397365614)
02/11/2022 11:01:06: [G_Auto 1] : Unable to place back bet on 2. Britbull Casper at 5.6. The order cannot be processed as the market is suspended.
02/11/2022 11:01:09: [G_Auto 1] : £ 0.93 of unmatched bet (Ref:286397365614) was filled before remainder was killed.
02/11/2022 11:01:09: [G_Auto 1] : Unable to place back bet on 5. Knockard Jett at 14. The order cannot be processed as the market is suspended.
02/11/2022 11:01:09: [G_Auto 1] : WARNING: The Betfair API was unable to process the bet cancellation request. Second attempt activated. (Ref: 286397366789)
02/11/2022 11:01:12: [G_Auto 1] : £ 2.28 of unmatched bet (Ref:286397366789) was filled before remainder was killed.
02/11/2022 11:01:13: [G_Auto 1] : WARNING: The Betfair API was unable to process the bet cancellation request. Second attempt activated. (Ref: 286397366793)
02/11/2022 11:01:13: [G_Auto 1] : Unable to place back bet on 4. Honeygar Pilot at 6.8. The order cannot be processed as the market is suspended.
02/11/2022 11:01:16: [G_Auto 1] : £ 1.72 of unmatched bet (Ref:286397366793) was filled before remainder was killed.
02/11/2022 11:01:16: [G_Auto 1] : WARNING: The Betfair API was unable to process the bet cancellation request. Second attempt activated. (Ref: 286397366167)
02/11/2022 11:01:16: [G_Auto 1] : Unable to place back bet on 1. Anmima Biddy at 8.2. The order cannot be processed as the market is suspended.
02/11/2022 11:01:19: [G_Auto 1] : £ 3.51 of unmatched bet (Ref:286397366167) was filled before remainder was killed.
02/11/2022 11:01:19: [G_Auto 1] : Unable to place back bet on 3. Clydagh Tommy at 4.7. The order cannot be processed as the market is suspended.

Lay bets being matched when the market is suspended, but offsets cant be placed because the market is suspended !! ?????

Please help me understand :-)
thanx,
Have a nice day! :-)

PS whilst writing this I think I might have an answer myself, but I will wait and see if any one replies,
Thanx again for taking the time to read.
There is a thing called SP Reconciliation which can take $ from the exchange to help balance the SP bets. It sounds like something that happened to you, though I'm not sure why it has never happened before then 3 times in a row.
Anbell
Posts: 2004
Joined: Fri Apr 05, 2019 2:31 am

I think the only way to avoid it is to stop betting prior to race time
User avatar
Derek27
Posts: 23475
Joined: Wed Aug 30, 2017 11:44 am
Location: UK

Anbell wrote:
Thu Nov 03, 2022 3:23 am
I think the only way to avoid it is to stop betting prior to race time
That's not really practical for a pre-race bot. Besides, some dog races don't go in-play. :)
Anbell
Posts: 2004
Joined: Fri Apr 05, 2019 2:31 am

Derek27 wrote:
Thu Nov 03, 2022 3:33 am
Anbell wrote:
Thu Nov 03, 2022 3:23 am
I think the only way to avoid it is to stop betting prior to race time
That's not really practical for a pre-race bot. Besides, some dog races don't go in-play. :)
I must not have explained myself very well.

I'm only talking about pre-race. If you dont want to risk getting caught with only one side of the bet you should cancel all bets and offset prior to race time.
Post Reply

Return to “Trading Greyhound racing”