ba.placeBet() - COM call - can you place multiple bets?

Discuss anything related to using the program (eg. triggered betting tactics)

Moderator: 2020vision

ba.placeBet() - COM call - can you place multiple bets?

Postby Coolhand22 » Tue Nov 26, 2013 4:44 am

ba.placeBet() - function call through the COM server in BA

Is this function only capable of placing one bet?
Do you have to just use this function consecutively to make multiple bets?
Coolhand22
 
Posts: 8
Joined: Sat Nov 23, 2013 5:24 am

Postby osknows » Tue Nov 26, 2013 10:48 am

The latest beta allows upto 60 bets using placeBet. You can't mix back and lay on the same runner though.
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Postby kiint » Wed Nov 27, 2013 10:50 am

osknows wrote:The latest beta allows upto 60 bets using placeBet. You can't mix back and lay on the same runner though.


Does it?
Ooh I didn't know that. Is there a link anywhere that explains how to do it?
kiint
 
Posts: 146
Joined: Tue Feb 23, 2010 12:12 am

Postby osknows » Wed Nov 27, 2013 12:54 pm

Below is a simple example for placing 3 bets

Code: Select all
Dim WithEvents ba As BettingAssistantCom.ComClass

Private Sub Example()

    'Setup array for 60 bets
    Dim refs() As String
    Dim selecIds(59) As Long
    Dim betTypes(59) As String
    Dim odds(59) As Double
    Dim stake(59) As Double
    Dim tokens(59) As String
   
    If ba Is Nothing Then
        Set ba = New BettingAssistantCom.ComClass
        ba.keepbettype = 1
        ba.tabIndex = 0
    End If
   
    'Example 3 bets only on same selection (selecId 0 = row 5)
    selecIds(0) = 4
    selecIds(1) = 4
    selecIds(2) = 4
   
    betTypes(0) = "B"
    betTypes(1) = "B"
    betTypes(2) = "B"
   
    odds(0) = 500
    odds(1) = 600
    odds(2) = 700
   
    stake(0) = 0.2
    stake(1) = 0.23
    stake(2) = 0.24
   
    tokens(0) = "test1"
    tokens(1) = "test2"
    tokens(2) = "test3"
   
    refs = ba.placeBets(selecIds, betTypes, odds, stake, False, tokens) 'async
    refs = ba.placeBets(selecIds, betTypes, odds, stake, True, tokens) 'sync

End Sub
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Postby kiint » Wed Nov 27, 2013 9:00 pm

Thanks Os.

So placeBets rather than placeBet.

That may well be useful, thanks again.
kiint
 
Posts: 146
Joined: Tue Feb 23, 2010 12:12 am

Postby MarkRussell » Thu Nov 28, 2013 12:36 am

Hi,

Please see http://www.gruss-software.co.uk/Betting_Assistant/UserGuide/functions.htm for a complete list of COM functions in the Beta version.

Regards,
Mark
User avatar
MarkRussell
Site Admin
 
Posts: 1792
Joined: Tue Feb 20, 2007 6:38 pm
Location: Birmingham

Postby Captain Sensible » Thu Nov 28, 2013 11:34 pm

I keep meaning to get to grips with the COM rather than the php I use at the moment. Is there anyway I can just dump the responses to text to see the format within the responses, just it'd make it easier for me to see how the returned arrays are structured. I'm used to the API responses but guess alot of stuff like session cookies aren't returned.

thanks

ps If anyone has a simple COM bot they don't mind sharing it'd be helpful, doesn't need to be a winning one ;) Just something with a few basics like gathering markets into an array and maybe bet placement
User avatar
Captain Sensible
 
Posts: 2917
Joined: Sat Nov 19, 2005 2:29 pm

Postby Coolhand22 » Sun Dec 01, 2013 2:30 am

When I try to use the function placeBets

I get this error:
"Run time error '438':
Object doesn't support this property or method"

I am using the latest beta of betting assistant.
ver 1.1.0.66x84


placeBet works just fine though
Coolhand22
 
Posts: 8
Joined: Sat Nov 23, 2013 5:24 am

Postby osknows » Wed Dec 04, 2013 10:37 am

I think the latest beta version is here http://www.gruss-software.co.uk/forum/v ... php?t=8004
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am


Return to Discussion

Who is online

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

cron