Author Topic: How to delete a market with no active selections?  (Read 649 times)

Tags:
  • All members
  • Posts: 12
Hi,
I load horse racing markets with no active selections and then read from a file to activate individual runners in some races.
How would I delete markets, with a trigger,  that have no active runners?
Thanks in advance
Chris

  • Moderator
  • Posts: 3597
*
Re: How to delete a market with no active selections?
« Reply #1 on: 16 May 2019, 18:49 »
Hi
the back and lay book percentages should be zero if there are no active selections

delete market
conditions:
markets back book % is equal to 0
and markets lay book % is equal to 0

and as a safety net you can include conditions like:
and markets number of matched back bets is equal to 0
and markets number of unmatched back bets is equal to 0
etc.

please try in test mode first
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.

  • All members
  • Posts: 12
Re: How to delete a market with no active selections?
« Reply #2 on: 17 May 2019, 10:51 »
Thanks MarkV will give that a try

 

Please note, BetFair is seems to be currently OFFLINE