Excel triggers question

Please post any questions regarding the program here.

Moderator: 2020vision

Excel triggers question

Postby PeteB » Sun Nov 16, 2008 4:15 pm

Hi Gary,

Quick question about the triggers:

When cancelling a bet, does "cancelled" appear in the betref column when BA receives the cancel instruction from Excel, or when you get confirmation back from the API that the bet has been cancelled?

And what happens to the mathced stake & odds column - can these be relied upon to show the proportion of the bet that wasn't cancelled?

Similarly - hwo can you tell from CANCEL-ALL that betfair has definitely received the instruction and there are no more unmatched bets?

Thanks,

Pete.
PeteB
 
Posts: 258
Joined: Tue May 23, 2006 12:13 pm

Postby PeteB » Mon Nov 17, 2008 12:55 am

Sorry - serves me right for reading the help file rather than testing...

So for CANCEL, it looks like if you provide a valid betref, if the bet is cancelled, then BA clears the BetRef / matched odds / matched stake details. If the bet is matched at all, then these columns will be populated with the details of the matched portion.
When the BetRef is cleared, can we be confident that the Cancel has hit betfair, or just that it has reached BA?

For CANCEL-ALL, it looks like you have to populate the BetRef column, but you can stick any number you like in there - when it is cleared, the CANCEL-ALL has been taken.
But agin, does this mean the Cancel All has hot betfair, or just BA?
PeteB
 
Posts: 258
Joined: Tue May 23, 2006 12:13 pm

Postby GaryRussell » Mon Nov 17, 2008 9:25 am

You can be sure that the CANCEL trigger has issued a cancel request to Betfair. The bet ref, odds and stake columns will only be cleared if the bet no longer appears in Betting Assistant. I have recently discovered a problem with this however. In the unlikely event (although now more likely considering recent problems with the API) that the cancel request was not processed due to a problem with the API and the bet refresh fails there is a possibility that it could be cleared and not cancelled. I will be adding extra safeguards in the next release.

CANCEL-ALL is more vulnuerable as you can only be sure it has sent the request, you are depending on there not being an API error. I will also be adding safeguards for this in the next release.
User avatar
GaryRussell
Site Admin
 
Posts: 9871
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby PeteB » Mon Nov 17, 2008 11:05 am

Gary, that's great - thanks very much for the clarification.

I'm also checking MyBets - it's just complicated handling all the different events in whatever order they could come in, and making sure my code can't get confused and start staking madly!
PeteB
 
Posts: 258
Joined: Tue May 23, 2006 12:13 pm

Postby GaryRussell » Sun Dec 07, 2008 12:05 pm

GaryRussell wrote:You can be sure that the CANCEL trigger has issued a cancel request to Betfair. The bet ref, odds and stake columns will only be cleared if the bet no longer appears in Betting Assistant. I have recently discovered a problem with this however. In the unlikely event (although now more likely considering recent problems with the API) that the cancel request was not processed due to a problem with the API and the bet refresh fails there is a possibility that it could be cleared and not cancelled. I will be adding extra safeguards in the next release.

CANCEL-ALL is more vulnuerable as you can only be sure it has sent the request, you are depending on there not being an API error. I will also be adding safeguards for this in the next release.


Version 1.1.0.41 now processes the cancel triggers in a more robust manner.

CANCEL will not clear the bet ref until a successful bets refresh has occurred and the list does not contain the reference.
CANCEL-ALL will not clear the ref unless the response from the API was OK, previously it would clear the ref regardless.

You can download the latest version using the link below. You must first uninstall the current version using the control panel.

http://www.gruss-software.co.uk/Betting ... a_Test.msi
User avatar
GaryRussell
Site Admin
 
Posts: 9871
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby PeteB » Sun Dec 07, 2008 8:19 pm

Gary - thanks that's great - I will give it a try!
PeteB
 
Posts: 258
Joined: Tue May 23, 2006 12:13 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 48 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.