placeBets - com function

Please post any questions regarding the program here.

Moderator: 2020vision

placeBets - com function

Postby alrodopial » Fri Jan 13, 2023 8:25 am

placeBets(selecId:Array of Integer, betType:Array of String, odds:Array of Double, stake:Array of double, waitForResult:Boolean, token:Array of String, fillKillDelay:Double, KeepBetType:Integer):Array of String

1. I see that waitForResult,fillKillDelay and KeepBetType HAVE to be the same for ALL the bets in the batch?
If I want e.g the second bet to have fillKillDelay: 3sec instead of eg 5sec(that all other bets have) I should place
the second bet with some other way? (e.g excel trigger/placeBet)

2. If I set waitForResult to False how do I submit the bet?
Still with the same way assigning to a variable? (but with no use of the variable as the betPlaced event will rise)
e.g tempVar = placeBets( ..................)

3. with waitForResult set to False how many betPlaced events will rise if I have used placeBets to place e.g 5 simultaneous bets?
alrodopial
 
Posts: 1355
Joined: Wed Dec 06, 2006 9:59 pm

Re: placeBets - com function

Postby GaryRussell » Tue Jan 24, 2023 8:10 am

1. I see that waitForResult,fillKillDelay and KeepBetType HAVE to be the same for ALL the bets in the batch?
If I want e.g the second bet to have fillKillDelay: 3sec instead of eg 5sec(that all other bets have) I should place
the second bet with some other way? (e.g excel trigger/placeBet)


I recommend calling placeBets consecutively with waitForResult set to false so the second request does not have to wait for the first to complete. betPlaced events will be fired for each placeBets

2. If I set waitForResult to False how do I submit the bet?
Still with the same way assigning to a variable? (but with no use of the variable as the betPlaced event will rise)
e.g tempVar = placeBets( ..................)

Just use placeBets(...........). You can use it like a sub instead of function.

3. with waitForResult set to False how many betPlaced events will rise if I have used placeBets to place e.g 5 simultaneous bets?

One event will be raised per placeBets. Therefore 5 events if 5 placeBets
User avatar
GaryRussell
Site Admin
 
Posts: 9695
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Re: placeBets - com function

Postby alrodopial » Tue Jan 24, 2023 11:43 am

Thanks, I'll check them in the next few days
alrodopial
 
Posts: 1355
Joined: Wed Dec 06, 2006 9:59 pm


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 112 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.