Author Topic: Removing a market with no matched bets  (Read 2530 times)

Tags:
  • All members
  • Posts: 23
Removing a market with no matched bets
« on: 12 Jun 2015, 12:59 »
I have made a Greyhound trigger that generaly seems to work. However, it only fires when the last market is settled. In the evening there are a lot of races running on some nights with the "Bags" "Evening" and "Televised" all running.
Now I want a market deleted if there are no matched bets when it goes into suspended mode. I created a simpele delete market trigger, when market = suspended and number of matched bets = 0.
Works great, but just before the market goes to settled, the software delete's the market on this trigger, since there are a few seconds where you don't see any matched bets and the market still stands on suspended, before you see the settled amount and status

I hope this is not too confusing, but how do I get around this?

  • Guest
Re: Removing a market with no matched bets
« Reply #1 on: 12 Jun 2015, 13:56 »
Hi,

I would delete the market if there were no bets at 0.08 minutes (5 seconds)before the start time. This would also clear out any races that are running late that might cause a bottleneck to your "previous market settled" condition.

Other than that suggestion, I have no other solutions.

Larp

  • All members
  • Posts: 23
Re: Removing a market with no matched bets
« Reply #2 on: 12 Jun 2015, 15:57 »
Hey Larp,

While reading your method, I thought long and found it had some flaws. Meaning, maybe the trigger would still fire even after that time, or if the trigger fired and the timer would go on long because of a delay, I wouldn't be anywhere still (I remember there being a topic where oxa suggested a sollution for a problem like that).

Then it hit me.
Delete market if market is Suspended and the actual trigger for betting number of runs = 0.
Problem solved! I don't understand though what that "overall" box does. Maybe Oxa can fill me on that (or I should read the manual but yeah... ;))

  • Guest
Re: Removing a market with no matched bets
« Reply #3 on: 12 Jun 2015, 16:26 »
Hi Vault,

Yes you can  calculate the "no bets" bit by either the trigger has no runs in that race OR just that there are no bets both matched and unmatched. If you prefer you can do it upon suspension as you say. But I would still much prefer to do it before the off, as you might find that a late running racetrack causes a bottleneck and you miss out on more markets than might be otherwise the case.

The Overall conditon on the delete markets trigger should be left unticked in this case. In general the Overall condition refers to any current or previous market where the trigger was used.

  • All members
  • Posts: 23
Re: Removing a market with no matched bets
« Reply #4 on: 12 Jun 2015, 17:08 »
I will try to implement it your way, with the combination that the betting trigger is equal to 0.
I will let you know the results of this little adventure ;)

  • All members
  • Posts: 23
Re: Removing a market with no matched bets
« Reply #5 on: 13 Jun 2015, 16:19 »
Conclusion, works like a charm!
Thank you so much Larp!

 

Please note, BetFair is seems to be currently OFFLINE