Originally I had a listbox returning the horse races starting between NOW -> and the next 1 hour. But I noted that once the start time passes, then of course MarketCatalog does not return a race which still may be available to bet on (ie OPEN).
To fix this I now search for races starting between NOW-10 minutes -> and forward 1 hour.
I also need to filter out OPEN races.
I also need to filter out IsInplay races. In Australia we can't bet online on IN-PLAY events (we have to ring up betfair!!! Thanks au government with your nanny stance!)
Anyway I found what I was looking for which is the "IsInplay" booleand and MarketStatus which is an enumeration shown below.
Public Enum MarketStatus
INACTIVE
OPEN
SUSPENDED
CLOSED
End Enum
Problem is, both IsInplay boolean and MarketStatus enumeration is only returned when you call MarketBook and not MarketCatalog which means you can only find out whether an event is OPEN/IN-PLAY after requesting price data. You think that you would be able to find out the MarketStatus when requesting the MarketCatalog. This requires less work and also less data traffic to BetFair's servers.
To fix this I now search for races starting between NOW-10 minutes -> and forward 1 hour.
I also need to filter out OPEN races.
I also need to filter out IsInplay races. In Australia we can't bet online on IN-PLAY events (we have to ring up betfair!!! Thanks au government with your nanny stance!)
Anyway I found what I was looking for which is the "IsInplay" booleand and MarketStatus which is an enumeration shown below.
Public Enum MarketStatus
INACTIVE
OPEN
SUSPENDED
CLOSED
End Enum
Problem is, both IsInplay boolean and MarketStatus enumeration is only returned when you call MarketBook and not MarketCatalog which means you can only find out whether an event is OPEN/IN-PLAY after requesting price data. You think that you would be able to find out the MarketStatus when requesting the MarketCatalog. This requires less work and also less data traffic to BetFair's servers.


Comment