I want to create a rule to turn a static bet in the market to an offset.
I thought about using bet amounts so for instance if matched was over 100 then back for 100 but if i was to lay say 1000 it would still only put a back in for 100.
If i was to use a stored value can i do a stored value for a time period and then do a calculation of the matched bets amount less the stored value?
Its seems like i'm missing a trick here somewhere.
Any suggestions are much appreciated
Adding "offset" to a bet already in the market
So i have a lay in the Premier league winners market its been in there for some time.
Its currently in line i would like to set up a rule that i that will now offset any amount that is taken. Obviously if i was to place a new trade i could have global setting with the offset on.
I have been trading this market so i have lots of trades completed already.
Basically its adding global settings to a bet that is either been in the market for some time or one that i have forgotten to have the global settings on.
Thanks in advance
Its currently in line i would like to set up a rule that i that will now offset any amount that is taken. Obviously if i was to place a new trade i could have global setting with the offset on.
I have been trading this market so i have lots of trades completed already.
Basically its adding global settings to a bet that is either been in the market for some time or one that i have forgotten to have the global settings on.
Thanks in advance
Ah ok I seen what you mean now, there are several ways including the use of Stored Values but the easiest way I can think of would be the following
'Place lay bet rule' (always armed) (Trigger can be a few dozen times, the conditions will keep it in check)
Staking type 'Net Stake'
For conditions use
'Amount of matched bets condition'
Total amount of back bets matched is greater than total amount of lay bets
'Unmatched Bets Amount Condition'
Total amount of unmatched lay bets
is equal to £0
You'd need to test this in PM to make sure i haven't over looked something but that should be all you need
'Place lay bet rule' (always armed) (Trigger can be a few dozen times, the conditions will keep it in check)
Staking type 'Net Stake'
For conditions use
'Amount of matched bets condition'
Total amount of back bets matched is greater than total amount of lay bets
'Unmatched Bets Amount Condition'
Total amount of unmatched lay bets
is equal to £0
You'd need to test this in PM to make sure i haven't over looked something but that should be all you need
Those instructions should already do it in batches, but just reading back over I have just spotted one scenario where lets assume £10 lay is matched, that will allow a £10 back bet to be placed, but if only £5 of that is matched (leaving another £5 of back bets unmatched) then a further £10 of lay bets get matched that £10 won't be offset until the remaining £5 back bet is matched due to the second condition.
As soon as that remaining £5 is matched then however much lay money has been matched it will then offset that again
How best to approach this part would largely depend on how your offsets get place, how long it'll likely take to be filled etc
Thanks i tested it on a dogs market which might have been a bit quick.
So i need to test it on a slower market.
A lot of the time ill will us the rule overnight say on a test match so the back fill rate will be slow. So this would mean i need to address this.
Its a shame because really "all" i want to do is retrospectively apply Global setting to a current bet it would be idea if could do this in the umatched bet window but alas we can't.
Do you think i will need to look into the Stored values route?
Thanks once again for your help!
So i need to test it on a slower market.
A lot of the time ill will us the rule overnight say on a test match so the back fill rate will be slow. So this would mean i need to address this.
Its a shame because really "all" i want to do is retrospectively apply Global setting to a current bet it would be idea if could do this in the umatched bet window but alas we can't.
Do you think i will need to look into the Stored values route?
Thanks once again for your help!
I doubt you'd need to use Stored Values for all of it, my first thought here is to use a Stored Value condition to test the 'NET' has changed, but that's not so straight forward as some backs could be matched before more lays and vice versa so actually identifying what are 'new lays' to place the appropriate offset is going to require a little thinking through.buyshirts wrote: ↑Sun Nov 15, 2020 1:58 pmThanks i tested it on a dogs market which might have been a bit quick.
So i need to test it on a slower market.
A lot of the time ill will us the rule overnight say on a test match so the back fill rate will be slow. So this would mean i need to address this.
Its a shame because really "all" i want to do is retrospectively apply Global setting to a current bet it would be idea if could do this in the umatched bet window but alas we can't.
Do you think i will need to look into the Stored values route?
Thanks once again for your help!
If you try it on some other markets so we know it works upto it only placing new offset backs once the previous ones are all matched i'll have a think about this final part and the best way of doing it
Thanks ill give it a good test to tomorrow, and ill try expanding it as you have said looking for any problems.
This is something i should of got around to earlier as well getting on top of the more understanding of all the different elements to automation.
I do appreciate taking the time to point me in the right direction please don't let it distract you too much from your own stuff!
Cheers
Dean
This is something i should of got around to earlier as well getting on top of the more understanding of all the different elements to automation.
I do appreciate taking the time to point me in the right direction please don't let it distract you too much from your own stuff!
Cheers
Dean