placeBet and betPlaced event with Com

Please post any questions regarding the program here.

Moderator: 2020vision

placeBet and betPlaced event with Com

Postby alrodopial » Fri Feb 25, 2022 8:55 am

Hi, I place a bet using the
placeBet(selecId:Integer,betType:String,odds:Double,stake:Double,waitForResult:Boolean,token:String,fillKillDelay:Double,KeepBetType:Integer):String
and set the waitForResult:False
ie reff = ba.placeBet(0, "B", 3.3, 10, False, "token01",10)

the betPlaced event will raise (usually 0.2 secs after the bet placement) that will inform me about the details of bet
Questions:

The bet is initially partially matched (I get this info from betPlaced event), will I get another betPlaced event raised if the bet is further matched
? (partially or fully)?

Will I get a betPlaced event raised if the bet is killed after the 10sec Fill or Kill ? (if bet is not matched at all? or if is partially matched?)

There is no such info in the manual
alrodopial
 
Posts: 1355
Joined: Wed Dec 06, 2006 9:59 pm

Re: placeBet and betPlaced event with Com

Postby GaryRussell » Fri Feb 25, 2022 9:14 am

The betPlaced event only applies to the initial bet placement. The event will only be raised once.
User avatar
GaryRussell
Site Admin
 
Posts: 9693
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Re: placeBet and betPlaced event with Com

Postby alrodopial » Fri Feb 25, 2022 6:28 pm

ok, now that I have the bet reff I can call the :

getBet(ref:string, exchangeId:Integer):BetDetail

whenever I want to get the further details of the bet

I don't see that this getBet(reff) can be run at the background so please note it as a suggestion
that it can be set to run at the background and of course another event should be raising afterwards
that will bring the "betDetail" object info
alrodopial
 
Posts: 1355
Joined: Wed Dec 06, 2006 9:59 pm


Return to Help

Who is online

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