How to log all the markets from a tab into a sheet using com

Please post any questions regarding the program here.

Moderator: 2020vision

How to log all the markets from a tab into a sheet using com

Postby enzoo » Fri Jan 17, 2014 7:16 pm

Hi, I have a BA instance running with several markets opened in the first tab. I would like to log this tab with all the markets into a sheet using com interface.

No problem logging one market, but I didn´t find the way to log more than one market into the same sheet, (newbbie using com).
Code: Select all

Private Sub ba_pricesUpdated()
    prices = ba.getPrices
    i = 4
    For Each priceItem In prices
        i = i + 1
        Cells(i, 1).Value = priceItem.Selection
        Cells(i, 2).Value = priceItem.backOdds1
        Cells(i, 3).Value = priceItem.layOdds1
    Next
End Sub


(I am using the test_BA example spreadsheet from the help)
enzoo
 
Posts: 2
Joined: Mon Mar 11, 2013 6:58 pm

Postby enzoo » Sun Jan 19, 2014 11:19 am

Any help?
enzoo
 
Posts: 2
Joined: Mon Mar 11, 2013 6:58 pm

Postby kiint » Sun Jan 19, 2014 6:24 pm

I don't know about all the markets on a single tab but if you have your markets open on separate tabs then have a look at Osknow's postthat explains how to handle these through the COM interface.
kiint
 
Posts: 148
Joined: Tue Feb 23, 2010 12:12 am


Return to Help

Who is online

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