Cancel bets if price changes during in-play delay time

Advanced automation available in Guardian - Chat with others and share files here.
Post Reply
User avatar
doctor143
Posts: 55
Joined: Wed Jul 31, 2019 3:10 pm

I want to cancel bets if the odds change during the in-play bet delay time.

For Example,
If the lay bet triggers at the odds of 2.0 in the in-play market and during the in-play delay of 5 seconds if the market moves from 2.0 to any other odds lets say 1.99, I want my automation bot to cancel the bets at very second they are listed as unmatched bets.

I have tried using historic relative odd conditions with unmatched bet conditions.
i.e.
Cancel bets when
1. unmatched bet > 0
2. lay price now = lay price 6 seconds ago.

But it is canceling all the wanted bets as well.
User avatar
Kafkaesque
Posts: 886
Joined: Fri Oct 06, 2017 10:20 am

doctor143 wrote:
Mon Oct 14, 2019 2:18 am
I want to cancel bets if the odds change during the in-play bet delay time.

For Example,
If the lay bet triggers at the odds of 2.0 in the in-play market and during the in-play delay of 5 seconds if the market moves from 2.0 to any other odds lets say 1.99, I want my automation bot to cancel the bets at very second they are listed as unmatched bets.

I have tried using historic relative odd conditions with unmatched bet conditions.
i.e.
Cancel bets when
1. unmatched bet > 0
2. lay price now = lay price 6 seconds ago.

But it is canceling all the wanted bets as well.
Given that you're mentioning specific prices in this way, can I assume, you're looking to take the prices? If so, fill or kill of 1 second should do the trick surely.
User avatar
doctor143
Posts: 55
Joined: Wed Jul 31, 2019 3:10 pm

No, I am not taking the prices so fill or kill won't work I guess. Let's assume, I am placing bets 25 ticks below the best price, so it will remain unmatched. Now what I want my bot to do is, cancel all the unmatched bets if price now(i.e. after 5 secs in-play delay) is not equal to price when the bet was triggered.
jamesg46
Posts: 3771
Joined: Sat Jul 30, 2016 1:05 pm

doctor143 wrote:
Mon Oct 14, 2019 6:31 am
No, I am not taking the prices so fill or kill won't work I guess. Let's assume, I am placing bets 25 ticks below the best price, so it will remain unmatched. Now what I want my bot to do is, cancel all the unmatched bets if price now(i.e. after 5 secs in-play delay) is not equal to price when the bet was triggered.
I think what you want is impossible, its almost like asking your bot to unclick its mouse, Betfair will always match you at the best available price.
User avatar
doctor143
Posts: 55
Joined: Wed Jul 31, 2019 3:10 pm

How come its impossible to cancel the unmatched bets? I just want to cancel the unmatched bets if the odds change during in-play bet processing time.
Cardano
Posts: 215
Joined: Mon Aug 21, 2017 12:02 pm

Can't be done - basically you have missed the bus
jamesg46
Posts: 3771
Joined: Sat Jul 30, 2016 1:05 pm

doctor143 wrote:
Mon Oct 14, 2019 10:14 pm
How come its impossible to cancel the unmatched bets? I just want to cancel the unmatched bets if the odds change during in-play bet processing time.
I'm not an expert but maybe it could be done with the "if" fuction in excel.
User avatar
ShaunWhite
Posts: 10472
Joined: Sat Sep 03, 2016 3:42 am

doctor143 wrote:
Mon Oct 14, 2019 2:18 am
I want to cancel bets if the odds change during the in-play bet delay time.
Cancel bets when
1. unmatched bet > 0
2. lay price now = lay price 6 seconds ago.

But it is canceling all the wanted bets as well.
Equals? Don't you want <> price 6 secs ago?

And have you tried this..
Screenshot_6.png
A straight cancel will cancel everything, wanted or otherwise. A price dependant cancel will let you cancel bets above/below a given price.
You do not have the required permissions to view the files attached to this post.
Post Reply

Return to “Bet Angel - Automation”