getMarketDepth for mulitple markets

Please post any questions regarding the program here.

Moderator: 2020vision

getMarketDepth for mulitple markets

Postby BFDon » Tue Feb 04, 2025 1:23 pm

I'm trying to get away from using 'log current prices' because it's a bit annoying to do and just run a spreadsheet completely through COM. My issue is I cant seem to grab market data across many tabs effectively. I have assessed the getMarketDepthExample_Async_multisheet and it has 6 sheets all running the ba.getmarketDepth False command which fires through the worksheet_change event. Having set all the tabs to the same market I can see that these commands return and output the market depth within ms of each other.

However my code below will only raise 1 getmarketDepthComplete event even with 4 tabs open. Oddly if i just set ba.TabIndex = 0 and run the code if does loop it and raise the event 4 times :|

Code: Select all

Public Sub RequestMarketDepth()

Dim TabNumber As Integer


        If ba Is Nothing Then
            Set ba = New BettingAssistantCom.ComClass
        End If
       
    For TabNumber = 0 To 3
   
    ba.TabIndex = TabNumber
    ba.getMarketDepth False

   
    Next TabNumber
   
End Sub

Private Sub ba_getMarketDepthComplete(ByVal MarketDepth As Variant, ByVal resultCode As String)

MsgBox MarketDepth(0).Selection

End Sub

BFDon
 
Posts: 17
Joined: Fri Apr 28, 2017 1:46 pm

Return to Help

Who is online

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