I'm trying to determine which football markets will go in-play

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Trisheye
    Junior Member
    • Jun 2025
    • 1

    #1

    I'm trying to determine which football markets will go in-play

    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
    Last edited by Trisheye; 17-06-2025, 11:12 AM.
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    Could you show us some code?

    Comment

    • bfexplorer
      Senior Member
      • Sep 2018
      • 212

      #3
      Originally posted by jabe View Post
      Could you show us some code?
      jabe, is this code ok? I have got the same problem for in-play markets.

      https://github.com/StefanBelo/Bfexpl...arp/Program.fs

      Comment

      • jabe
        Senior Member
        • Dec 2014
        • 705

        #4
        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
        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.

        Comment

        • bfexplorer
          Senior Member
          • Sep 2018
          • 212

          #5
          Thanks 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 image.png

          Comment

          • jabe
            Senior Member
            • Dec 2014
            • 705

            #6
            Originally posted by bfexplorer View Post
            Thanks 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
            It's almost 3pm UK and I'm getting Aus racing up okay. Has it changed for you?

            Comment

            • bfexplorer
              Senior Member
              • Sep 2018
              • 212

              #7
              No AU markets, what is quite strange, even AU country is not included in the filter

              image.png
              Maybe someone directly from betfair should say about it more.

              image.png

              Comment

              • jabe
                Senior Member
                • Dec 2014
                • 705

                #8
                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

                • jabe
                  Senior Member
                  • Dec 2014
                  • 705

                  #9
                  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

                  • jabe
                    Senior Member
                    • Dec 2014
                    • 705

                    #10
                    Originally posted by Trisheye View Post
                    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

                    Might you have written something like
                    TurnInPlayEnabled = "True"
                    instead of
                    TurnInPlayEnabled = True
                    ?

                    Comment

                    Working...
                    X