Hi, I'm trying to determine which football markets will go in-play. I'm setting the TurnInPlayEnabled field in the MarketFilter to true when making the request to listMarketCatalogue, but the result set returns all the markets and they have TurnInPlayEnabled = false even for fixtures I can see on the site are going in-play imminently? If someone has a suggestion on how to remedy this, I'd be very grateful. cluster rush
I'm trying to determine which football markets will go in-play
Collapse
X
-
jabe, is this code ok? I have got the same problem for in-play markets.Originally posted by jabe View PostCould you show us some code?
https://github.com/StefanBelo/Bfexpl...arp/Program.fs
Comment
-
It looks okay (with the proviso that I don't know F#). I need to try to get something running over the weekend. Could you run yours and get it to print the contents of Filter and perhaps the other values used for making the listMarketCatalog call? And perhaps some of what the call returns? Thanks.Originally posted by bfexplorer View Post
jabe, is this code ok? I have got the same problem for in-play markets.
https://github.com/StefanBelo/Bfexpl...arp/Program.fs
Comment
-
-
It's almost 3pm UK and I'm getting Aus racing up okay. Has it changed for you?Originally posted by bfexplorer View PostThanks jabe I will try. Did you notice or know about changes to access horse racing markets from AUStralia, because nothing comes back from api.
Even web page shows error when attempting to open listed market
Comment
-
I'll get you to try something that might seem a bit daft, just to check it out before we go any further. It's almost 5pm Saturday in the UK and the next Aus races I see on the Betfair exchange are dated tomorrow morning, the 22nd, from around 02:00am to about 09:00am. Could you comment out the MarketStartTime from your Filter and run your program to see if any Aus races appear? It shouldn't make a difference, since the MarketStartTime is not the event start time. Let me know how it goes.
Comment
-
If you get the above tested and find that your results include Aus ones races, it might be a case of working out an end time 24 hours from the right-now time. I thought I'd seen somewhere where you added +1 to the current date. If not, read the remainder of this and you might be able to experiment and have Aus MarketCatalogues returned.
The next bit may seem strange.When I started looking at my main program (still unfinished, alas), I noticed something that seemed to be an error. When my prog starts up, it gets a list of events that are football matches. I spotted that in creating the MarketFilter for the listEvents call, I'd coded
"turnInPlayEnabled":["true"]
which appeared to be an error. After getting a list of Events, it cycles through each, selecting a set of MarketCatalogues, etc.
I've just been playing with the API-NG Demonstration Tool. Without restricting the date, I'm getting Aus races.
I tried a listEvents call to get all type 7 ones. It returned 73 races.
I then specified "turnInPlayEnabled":["true"] and it only returned 44 races. Even though the EventResult class does not include turnInPlayEnabled.
From a hierarchical point of view, this is very interesting.
With "turnInPlayEnabled":["true"] added for listMarketCatalogues, along with a date restriction, the number of rows returned dropped,as expected.
I think we can only solve this by seeing the actual CURL call used by the programs of the two of you.
Comment
-
Originally posted by Trisheye View PostHi, I'm trying to determine which football markets will go in-play. I'm setting the TurnInPlayEnabled field in the MarketFilter to true when making the request to listMarketCatalogue, but the result set returns all the markets and they have TurnInPlayEnabled = false even for fixtures I can see on the site are going in-play imminently? If someone has a suggestion on how to remedy this, I'd be very grateful. cluster rush
Might you have written something like
TurnInPlayEnabled = "True"
instead of
TurnInPlayEnabled = True
?
Comment


Comment