Market Base Rate values are different

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Joey Jo Jo
    Junior Member
    • Oct 2014
    • 11

    #1

    Market Base Rate values are different

    Hi all,

    I have been developing against the new API-NG in C# for a few months now. I have noticed that the Market Base Rate value in the JSON returned to my application from the listMarketCatalogue method is always 7 for Horse and Greyhound Racing in Australia and Overseas. Not sure if this is intended but I notice that on the betfair.com.au website these Market Base Rate values will be 6.5 for Australia and 5 for Overseas. I used the API-NG visualiser to check that it was not just me but the Market Base Rate is 7 there too.

    What I want to know is why is there a difference between what the site says and what the API says? Will the Market Base Rate be 7 for all Horse and Greyhound racing through the API-NG regardless of jurisdiction? Or is this just a bug?

    Cheers
  • betdynamics
    Junior Member
    • Sep 2010
    • 534

    #2
    I've just checked my data and it is showing a Market Base Rate for 6.5% for AUS/NZ races and 5% for UK/USA races.

    Comment

    • Joey Jo Jo
      Junior Member
      • Oct 2014
      • 11

      #3
      Thanks for the reply betdynamics, may I ask if I can get a copy of the JSON used in one of your requests please? Minus all your account info of course What I want to know is if there is some parameter you have set that I am missing.

      Comment

      • betdynamics
        Junior Member
        • Sep 2010
        • 534

        #4
        Here is an example of the JSON string for the call to listMarketCatalogue that I am using:

        Code:
        {"jsonrpc":"2.0","method":"SportsAPING/v1.0/listMarketCatalogue","params":{"filter":{"eventTypeIds":["7"],"eventIds":["27281186"],"marketCountries":["GB"],"marketTypeCodes":["WIN","PLACE"],"marketStartTime":{"from":"2014-10-07T23:00:00Z","to":"2014-10-08T22:59:59Z"}},"marketProjection":["EVENT","MARKET_DESCRIPTION","MARKET_START_TIME","RUNNER_METADATA"],"sort":"FIRST_TO_START","maxResults":25},"id":1}

        Comment

        • Joey Jo Jo
          Junior Member
          • Oct 2014
          • 11

          #5
          Thanks for your JSON betdynamics. So I have adapted my requests to be more in line with yours (I was only sending through eventIds, a TimeRange, and the market projections). Unfortunately though I am still getting 7 for the Market Base Rate.

          This is a sample of the JSON I am posting to the API(AUS endpoint).
          Code:
          {"jsonrpc":"2.0","method":"SportsAPING/v1.0/listMarketCatalogue","params":{"filter":{"eventTypeIds":["7","4339"],"eventIds":["27281533","27281552","27281535","27281528","27281531","27281527"],"marketCountries":["AU","NZ"],"marketTypeCodes":["WIN","PLACE"],"marketStartTime":{"from":"2014-10-09T00:00:00Z","to":"2014-10-10T00:00:00Z"}},"marketProjection":["EVENT","EVENT_TYPE","MARKET_DESCRIPTION","MARKET_START_TIME","RUNNER_DESCRIPTION","RUNNER_METADATA"],"sort":"MINIMUM_TRADED","maxResults":1000},"id":1}

          Comment

          • Joey Jo Jo
            Junior Member
            • Oct 2014
            • 11

            #6
            JSON posted to UK endpoint:
            Code:
            {"jsonrpc":"2.0","method":"SportsAPING/v1.0/listMarketCatalogue","params":{"filter":{"eventTypeIds":["7","4339"],"eventIds":["27281309","27281707","27281772","27281711","27281709","27281767"],"marketCountries":["US","GB","FR","ZA","IE"],"marketTypeCodes":["WIN","PLACE"],"marketStartTime":{"from":"2014-10-09T00:00:00Z","to":"2014-10-10T00:00:00Z"}},"marketProjection":["EVENT","EVENT_TYPE","MARKET_DESCRIPTION","MARKET_START_TIME","RUNNER_DESCRIPTION","RUNNER_METADATA"],"sort":"MINIMUM_TRADED","maxResults":1000},"id":1}
            Market Base Rate is still 7 also.

            Comment

            • Joey Jo Jo
              Junior Member
              • Oct 2014
              • 11

              #7
              JSON posted to UK endpoint for a single Event

              Code:
              "{"jsonrpc":"2.0","method":"SportsAPING/v1.0/listMarketCatalogue","params":{"filter":{"eventTypeIds":["7"],"eventIds":["27281909"],"marketCountries":["GB"],"marketTypeCodes":["WIN","PLACE"],"marketStartTime":{"from":"2014-10-09T00:00:00Z","to":"2014-10-09T23:59:59Z"}},"marketProjection":["EVENT","EVENT_TYPE","MARKET_DESCRIPTION","MARKET_START_TIME","RUNNER_DESCRIPTION","RUNNER_METADATA"],"sort":"MINIMUM_TRADED","maxResults":1000},"id":1}"
              Market Base Rate still 7

              Comment

              • betdynamics
                Junior Member
                • Sep 2010
                • 534

                #8
                Can you post the actual JSON response string so we can see exactly what it is returning?

                Comment

                • Joey Jo Jo
                  Junior Member
                  • Oct 2014
                  • 11

                  #9
                  Hi betdynamics, unfortunately I can't post all my JSON as it is too big (I get this error when I try to post - The text that you have entered is too long (38302 characters). Please shorten it to 20000 characters long.). I reduced the response size by only using the MARKET_DESCRIPTION projection. Anyway I can at least Post the top of the JSON with the Market Base Rate in it.

                  Request JSON
                  Code:
                  {"jsonrpc":"2.0","method":"SportsAPING/v1.0/listMarketCatalogue","params":{"filter":{"eventTypeIds":["7"],"eventIds":["27282216"],"marketCountries":["AU"],"marketTypeCodes":["WIN","PLACE"],"marketStartTime":{"from":"2014-10-10T00:00:00Z","to":"2014-10-10T23:59:59Z"}},"marketProjection":["MARKET_DESCRIPTION"],"sort":"MINIMUM_TRADED","maxResults":1000},"id":1}
                  Response JSON
                  Code:
                  {"jsonrpc":"2.0","result":[{"marketId":"2.101045086","marketName":"R1 1800m Pace M","description":{"persistenceEnabled":true,"bspMarket":true,"marketTime":"2014-10-10T03:45:00.000Z","suspendTime":"2014-10-10T03:45:00.000Z","bettingType":"ODDS","turnInPlayEnabled":true,"marketType":"WIN","marketBaseRate":7.0,"discountAllowed":true,"wallet":"Australian wallet","rules":"<a href=\"http://altfarm.mediaplex.com/ad/ck/12244-73523-16608-294?mpt=\" target=\"_blank\"><img src=\"http://altfarm.mediaplex.com/ad/bn/12244-73523-16608-294?mpt=\" alt=\"Tote Extra\" border=\"0\"></a> <a href=\"http://altfarm.mediaplex.com/ad/ck/12244-73523-16608-45?mpt=\" target=\"_blank\"><img src=\"http://altfarm.mediaplex.com/ad/bn/12244-73523-16608-45?mpt=\" alt=\"Form Guide\" border=\"0\"></a><br> <a href=\"http://altfarm.mediaplex.com/ad/ck/12244-73523-16608-86?mpt=\" target=\"_blank\"><img src=\"http://altfarm.mediaplex.com/ad/bn/12244-73523-16608-86?mpt=\" alt=\"Betfair SP\" border=\"0\"></a> <a href=\"http://altfarm.mediaplex.com/ad/ck/12244-73523-16608-48?mpt=\" target=\"_blank\"><img src=\"http://altfarm.mediaplex.com/ad/bn/12244-73523-16608-48?mpt=\" alt=\"The TOTE\" border=\"0\"></a> <br><br><b>MARKET INFORMATION</b><br><br>For further information please see <a href=http://content.betfair.com/aboutus/content.asp?sWhichKey=Rules%20and%20Regulations#undefined.do style=color:0163ad; text-decoration: underline; target=_blank>Rules & Regs</a>.<br><br>Who will win this race? Betfair Non-Runner Rule applies. Odds of matched bets will only be adjusted if there are ADDITIONAL non-runners after your bet is matched. This market will turn <b>IN PLAY</b> at the off with all unmatched bets cancelled once the Betfair SP reconciliation process has been completed. Betting will be suspended at the end of the race. This market will initially be settled on a First Past the Post basis. However we will re-settle all bets should the official result at the time of the \"All Clear\" announcement differ from any initial settlement. Dead heat rules apply.<br><br><b>BSP (Betfair Starting Price) operates on this market</b>. For more information about setting a Starting Price odds limit  <a target=\"_blank\"  href=\"http://sp.betfair.com.au/FAQs_settingSPlimits.php\">click here</a><br><br>This is a <a href=\"http://cross-matching.betfair.com.au/\" target=\"_blank\">cross-matching</a> market. <br><br><b>Customers should be aware that:</b><ol><li><b>transmissions described as \"live\" by some broadcasters may actually be delayed and that all in-play races are not necessarily televised;</b></li><li><b>the extent of any such delay may vary between customers, depending on the set-up through which they are receiving pictures or data.</b> </li><li>information (such as jockey silks, saddlecloth numbers etc) is provided \"as is\" and is for guidance only. Betfair does not guarantee the accuracy of this information and use of it to place bets is entirely at your own risk.</li></ol><br><br><table cellborder=\"0\" width=\"100%\"><tr><td><a href=\"http://betfair-en.custhelp.com/app/answers/detail/a_id/1262/\" target=\"_blank\"><img src=\"http://content.betfair.com/images/en_GB/homepage/ausflag.jpg\" border=\"0\"></a></td><td width=\"5\">&nbsp;</td><td class=\"marketInfo_GreyText\"><a href=\"http://betfair-en.custhelp.com/app/answers/detail/a_id/1262/\" target=\"_blank\">This market is regulated by the Tasmanian Gaming Commission under a Tasmanian Gaming Licence (TGL) issued to Betfair Pty Ltd.</a></td></tr></table><br>","rulesHasDate":true},"totalMatched":0.0},

                  Comment

                  • betdynamics
                    Junior Member
                    • Sep 2010
                    • 534

                    #10
                    Hmm - yes, the marketRate is definitely coming back as 7.0.

                    I know that Market Base Rates are different for different countries, so presumably you are resident in (or logging in from) a country where the base rate is 7.0

                    You should be able to confirm this by emailing bdp@betfair.com and askin them to verify it.

                    Comment

                    • Joey Jo Jo
                      Junior Member
                      • Oct 2014
                      • 11

                      #11
                      Thanks for the info betdynamics. We are actually connecting from Australia and the market base rate here is meant to be 6.5% due to the local laws.

                      Comment

                      • betdynamics
                        Junior Member
                        • Sep 2010
                        • 534

                        #12
                        Hence the suggestion to contact bdp@betfair.com as it looks to me as if the base rate has been set wrongly on your Betfair account.

                        Comment

                        • Joey Jo Jo
                          Junior Member
                          • Oct 2014
                          • 11

                          #13
                          Thanks for the reminder betdynamics. This was actually one of my assumptions from the outset. The only problem is that we don't have this issue with the old API. I wonder why that is...

                          Comment

                          Working...
                          X