problem with startTime for footy matches via COM

Please post any questions regarding the program here.

Moderator: 2020vision

problem with startTime for footy matches via COM

Postby HiArt99 » Thu Feb 25, 2010 11:44 am

It could be that I can't get the startTime for footy (soccer) matches via the COM interface, because I only seem to return "00:00:00".

The code is a simple loop, populating cells.

Code: Select all
    event1 = ba.getEvents(14)                                       'SportID 14 = "Soccer - Fixtures"
   
    For Each evnt1 In event1
   
        event2 = ba.getEvents(evnt1.eventId)
   
        For Each evnt2 In event2
            diff = DateDiff("s", Now(), evnt2.startTime)
            'If diff >= 0 Then
                'Match not yet started
                ActiveCell.Offset(0, 0).Value = CDate(Mid(evnt1.eventName, 10, 99))
                ActiveCell.Offset(0, 0).NumberFormat = "dd mmmm"
                ActiveCell.Offset(0, 0).HorizontalAlignment = xlLeft
                ActiveCell.Offset(0, 1).Value = evnt2.eventName
                ActiveCell.Offset(0, 2).Value = "'" & CStr(evnt2.eventId)
                ActiveCell.Offset(0, 6).Value = evnt2.startTime
                ActiveCell.Offset(1, 0).Select
            'End If
        Next
    Next


I have tried evnt1.startTime and this also returns "00:00:00" :cry:

Does anyone know/have suggestions on how to get to the start time of a footy match?

Thanks

Art
If I get lost in thought it is because it is unfamiliar territory.
HiArt99
 
Posts: 68
Joined: Tue Aug 25, 2009 7:28 am

Postby GaryRussell » Thu Feb 25, 2010 11:46 am

I will look into it and get back to you.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby HiArt99 » Thu Feb 25, 2010 11:56 am

Thanks Gary.

Just to confirm. I know evnt2 not a market so I have also tried

Code: Select all
        mDate = #1/1/1901 1:01:01 AM#

        For Each evnt2 In event2
            If InStr(evnt2.eventname, "Match Odds") >= 0 Then
                event3 = ba.getEvents(evnt2.eventId)

                For Each evnt3 In event3
                    If mDate = #1/1/1901 1:01:01 AM# Then
                        mDate = evnt3.startDate
                        Exit For
                    End If
                Next
            End If


This bring up the match Odds, or Match odds Unmanaged markets, and isMarket is True for event3. Still returns "00:00:00" though.

Regards

Art
If I get lost in thought it is because it is unfamiliar territory.
HiArt99
 
Posts: 68
Joined: Tue Aug 25, 2009 7:28 am

Postby GaryRussell » Thu Feb 25, 2010 2:50 pm

The problem is that the times are not returned by the getEvents API call. I am updating the COM interface code to recognise this and do a getAllMarkets call internally to get the times when they are missing. I will be releasing an update in the next few days.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby HiArt99 » Thu Feb 25, 2010 4:02 pm

Thanks Gary.

A a professional software tester, I know there is no substitute for real life :lol:

Art
If I get lost in thought it is because it is unfamiliar territory.
HiArt99
 
Posts: 68
Joined: Tue Aug 25, 2009 7:28 am

Postby GaryRussell » Mon Mar 01, 2010 8:47 am

Version 1.1.0.64z2 contains this fix. See http://www.gruss-software.co.uk/forum/v ... php?t=3922 for download link.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK


Return to Help

Who is online

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