trigger for cancel and then place bet

Please post any questions regarding the program here.

Moderator: 2020vision

trigger for cancel and then place bet

Postby alrodopial » Tue Oct 08, 2013 9:36 pm

I want to cancel an unmatched bet - I know the bet reff - and then place another.Is there a trigger that does it? ( a suggestion for Garry? )

If no, is there any available code?
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm

Postby Captain Sensible » Wed Oct 09, 2013 12:03 pm

The CANCEL trigger will cancel the corresponding bet ref so you can just stick the betref alongside any runner and enter CANCEL in the trigger, the bet will be cancelled and the betref column cleared. Alternatively you can use the COM function cancelBet() ,

There isn't any trigger to cancel and place another at the same time you'd need to code and resubmit yourself with a bit of creative excel or vba and make sure you don't allow things to go into a loop. I had some code years ago and used the fill and kill ecel option to control things as that'd put CANCELLED in the bet ref if the original bet wasn't matched, that way I could use the CANCELLED indicator as part of my trigger and also adjust the fill and kill rate just by having a variable for the seconds depending how far into a race I was.
User avatar
Captain Sensible
 
Posts: 2923
Joined: Sat Nov 19, 2005 2:29 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 76 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.