Tennis Filters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • geoffw123
    Senior Member
    • Mar 2014
    • 250

    #1

    Tennis Filters

    Hi

    Anyone know how to filter a tennis markets search to allow selection of mens or womans matches ? I initially thought that it was not possible to do this as gender of match was not something Betfair provided via their API.

    However it must be possible somehow as BetAngel for one can do this, for example, their site says tennis markets can be filtered with an example search string such as "Tennis AND Match Odds AND Mens AND Aus "

    Thanks for any ideas on this.

    Regards Geoff
  • newbie99
    Junior Member
    • Dec 2018
    • 62

    #2
    Originally posted by geoffw123 View Post
    Hi

    Anyone know how to filter a tennis markets search to allow selection of mens or womans matches ? I initially thought that it was not possible to do this as gender of match was not something Betfair provided via their API.

    However it must be possible somehow as BetAngel for one can do this, for example, their site says tennis markets can be filtered with an example search string such as "Tennis AND Match Odds AND Mens AND Aus "

    Thanks for any ideas on this.

    Regards Geoff
    Would this work for you (i.e. text filtering on the Name under Event when calling listMarketCatalogue)?

    [6]=> array(5) { ["marketId"]=> string(11) "1.139509647" ["marketName"]=> string(6) "Winner" ["totalMatched"]=> float(1082335.16) ["eventType"]=> array(2) { ["id"]=> string(1) "2" ["name"]=> string(6) "Tennis" } ["event"]=> array(5) { ["id"]=> string(8) "28567141" ["name"]=> string(21) "Australian Open Men's" ["countryCode"]=> string(2) "AU" ["timezone"]=> string(16) "Australia/Sydney" ["openDate"]=> string(24) "2019-01-14T00:00:00.000Z" } }

    Comment

    • geoffw123
      Senior Member
      • Mar 2014
      • 250

      #3
      Thanks for the reply, I am not exactly sure at the moment, what marketFilter data did you send to get that response ? I have sent a very generic search filter just basically requesting tennis + today and dont see that same name string response you quoted ?

      Also not sure how generic a solution this would be ? Would it just work for the Aussie mens open, or is it more applicable ?

      Comment

      • newbie99
        Junior Member
        • Dec 2018
        • 62

        #4
        Originally posted by geoffw123 View Post
        Thanks for the reply, I am not exactly sure at the moment, what marketFilter data did you send to get that response ? I have sent a very generic search filter just basically requesting tennis + today and dont see that same name string response you quoted ?

        Also not sure how generic a solution this would be ? Would it just work for the Aussie mens open, or is it more applicable ?
        Calling listMarketCatalogue, I used the following (I typically have my query setup to look for any markets where I have live orders or executed orders, i..e any risk on):

        $request_name = 'listMarketCatalogue';
        $paramaters ='{"filter":{"withOrders":["EXECUTION_COMPLETE","EXECUTABLE"]},"marketProjection":["EVENT","EVENT_TYPE"],"maxResults": "1000"}';

        Should work for any, as a spot test:

        [17]=> array(5) { ["marketId"]=> string(11) "1.145857613" ["marketName"]=> string(6) "Winner" ["totalMatched"]=> float(725.44) ["eventType"]=> array(2) { ["id"]=> string(1) "2" ["name"]=> string(6) "Tennis" } ["event"]=> array(5) { ["id"]=> string(8) "28811708" ["name"]=> string(17) "Wimbledon Women's" ["countryCode"]=> string(2) "GB" ["timezone"]=> string(13) "Europe/London" ["openDate"]=> string(24) "2019-07-01T09:00:00.000Z" } }

        Comment

        • geoffw123
          Senior Member
          • Mar 2014
          • 250

          #5
          Ah thats interesting, you can see the men/woman string if you have a bet placed into the market. So far I havent found a marketFilter to send that gives me that string but without the need to have placed a bet into the market. This cant be the way BetAngel does it as clearly they wouldnt have the requirement for a bet to be active just for a simple market filter request. Hmmm still scratching my head on this one.

          Comment

          • newbie99
            Junior Member
            • Dec 2018
            • 62

            #6
            Originally posted by geoffw123 View Post
            Ah thats interesting, you can see the men/woman string if you have a bet placed into the market. So far I havent found a marketFilter to send that gives me that string but without the need to have placed a bet into the market. This cant be the way BetAngel does it as clearly they wouldnt have the requirement for a bet to be active just for a simple market filter request. Hmmm still scratching my head on this one.
            $paramaters ='{"filter":{"eventTypeIds":["2"]},"marketProjection":["EVENT","EVENT_TYPE"],"maxResults": "1000"}';

            The above will return all Tennis markets (regardless of whether you have any orders on), you could then filter the data into a table and have one column for womens events one for mens or alternatively, include a free text filter in the above and just call all the Tennis event types including 'Mens' or 'Womens' as needed (although its a bit more complicated than that as for some reason you can't filter on *men's or *women's you would need other characters ahead of the *, which is a pain as you'd have to know the event name, in which case you may need to make multiple calls).
            Last edited by newbie99; 19-01-2019, 03:38 PM.

            Comment

            • geoffw123
              Senior Member
              • Mar 2014
              • 250

              #7
              Hi thanks again for the assistance. That was my point, if you send a broad search request like that it doesnt give the data back I need. This is the json I tested with

              Code:
              {"filter":{"textQuery":"","eventTypeIds":["2"],"marketCountries":[],"marketTypeCodes":[],"marketStartTime":{"from":"2019-01-19T00:00:00+00:00","to":"2019-01-20T00:00:00+00:00"},"withOrders":[]},"marketProjection":["EVENT","MARKET_START_TIME","EVENT_TYPE","COMPETITION"],"sort":"MAXIMUM_TRADED","maxResults":"1000","locale":null}
              I get a ton of data back but nothing where I can snag either "men" or "woman" from any reply string

              The event name is typically something like "T Griekspoor v Mager"
              The competition name is typically something like "Koblenz Challenger 2019"

              Maybe I am missing something ?

              Comment

              • newbie99
                Junior Member
                • Dec 2018
                • 62

                #8
                Originally posted by geoffw123 View Post
                Hi thanks again for the assistance. That was my point, if you send a broad search request like that it doesnt give the data back I need. This is the json I tested with

                Code:
                {"filter":{"textQuery":"","eventTypeIds":["2"],"marketCountries":[],"marketTypeCodes":[],"marketStartTime":{"from":"2019-01-19T00:00:00+00:00","to":"2019-01-20T00:00:00+00:00"},"withOrders":[]},"marketProjection":["EVENT","MARKET_START_TIME","EVENT_TYPE","COMPETITION"],"sort":"MAXIMUM_TRADED","maxResults":"1000","locale":null}
                I get a ton of data back but nothing where I can snag either "men" or "woman" from any reply string

                The event name is typically something like "T Griekspoor v Mager"
                The competition name is typically something like "Koblenz Challenger 2019"

                Maybe I am missing something ?
                If you copy paste mine then you should see the name including the Men's / Women's as below?

                [17]=> array(5) { ["marketId"]=> string(11) "1.145857613" ["marketName"]=> string(6) "Winner" ["totalMatched"]=> float(725.44) ["eventType"]=> array(2) { ["id"]=> string(1) "2" ["name"]=> string(6) "Tennis" } ["event"]=> array(5) { ["id"]=> string(8) "28811708" ["name"]=> string(17) "Wimbledon Women's" ["countryCode"]=> string(2) "GB" ["timezone"]=> string(13) "Europe/London" ["openDate"]=> string(24) "2019-07-01T09:00:00.000Z" } }

                Comment

                • newbie99
                  Junior Member
                  • Dec 2018
                  • 62

                  #9
                  Originally posted by newbie99 View Post

                  If you copy paste mine then you should see the name including the Men's / Women's as below?

                  [17]=> array(5) { ["marketId"]=> string(11) "1.145857613" ["marketName"]=> string(6) "Winner" ["totalMatched"]=> float(725.44) ["eventType"]=> array(2) { ["id"]=> string(1) "2" ["name"]=> string(6) "Tennis" } ["event"]=> array(5) { ["id"]=> string(8) "28811708" ["name"]=> string(17) "Wimbledon Women's" ["countryCode"]=> string(2) "GB" ["timezone"]=> string(13) "Europe/London" ["openDate"]=> string(24) "2019-07-01T09:00:00.000Z" } }
                  Ah, yes I see what you mean, if you call everything (as I did), then some markets have the full Description under the Event Name, but not all do.

                  That is quite annoying.

                  Comment

                  • newbie99
                    Junior Member
                    • Dec 2018
                    • 62

                    #10
                    Originally posted by newbie99 View Post

                    Ah, yes I see what you mean, if you call everything (as I did), then some markets have the full Description under the Event Name, but not all do.

                    That is quite annoying.
                    It seems the competitions that don't have the description in, also don't on the main Betfair site, so I think the method is correct, its just the actual descriptions are not helpful.

                    Its there for the Major's I think, but smaller events, its not.

                    Comment

                    Working...
                    X