listMarketBook Get Place Odds not Win

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FWR
    Junior Member
    • Nov 2016
    • 14

    #1

    listMarketBook Get Place Odds not Win

    I am attempting to get PLACE ODDS...
    All i seem to be able to get is WIN
    Following is my Request Line
    Dim Gr As String = "{""jsonrpc"": ""2.0"", ""method"":""SportsAPING/v1.0/listMarketBook"",""params"": {""marketIds"":[""1.128511750""], ""marketType"":""PLACE"",""priceProjection"":{""pr iceData"":[""EX_BEST_OFFERS""],""exBestOffersOverrides"":{""bestPricesDepth"":"" 20""}} }, ""id"": 1}]"

    I have guessed markettype should work but it does not seem to work and i still get win odds

    Really appreciate any help...
    Last edited by FWR; 02-12-2016, 07:37 AM.
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    I've not been able to check whether the marketId in your call was for a place market, but that is purely what you need to know to get place odds.

    I'll back track a little.

    If you want to bet on horse racing, the first thing to do each day is a listEvents call with parameters something like this:

    """filter"":{""eventTypeIds"":[""7""],""marketStartTime"":{""from"": """ & date1 & "T00:00:00Z"",""to"":""" & date1 & "T23:59:00Z""},""countryCodes"":[""GB"",""FR"",""IE""]}"

    Where date1 is today's date.

    This gets you a list of Events (= races) for the day in those countries, and each will have a number of related markets for the event.

    For each Event, you need to do a listMarketCatalogue. At this point you specify the marketTypeCodes you want.

    This is an example of the parameters for a listMarketCatalogue call:

    "listMarketCatalogue", """filter"":{""eventIds"": [" & raceEvent & "],""marketTypeCodes"": [""PLACE""]},""maxResults"": ""10"",""marketProjection"":[""RUNNER_DESCRIPTION"",""MARKET_START_TIME""]"

    That'll return you the correct marketId for the place market, and you can use that marketId to get the place odds.

    Comment

    • FWR
      Junior Member
      • Nov 2016
      • 14

      #3
      OK Working NOw

      I appologise it is now working

      The series of races i called for earlier today when loading the program were not "to be placed" ie Place races
      There was a large number of races and i only loaded 10 of them !!!

      When i called for the races i used
      Dim jstring As String = GetMarketCatalogue()
      I guess i should have not called all races and only called "PLACE" in GetMarketCatalogue


      It caught me out and i panic'd !@!@!@@!

      I ran it a few minutes ago and there were a few races "to be placed" and then i realized my mistake.

      Sorry for the confusion..


      Regards

      Comment

      • FWR
        Junior Member
        • Nov 2016
        • 14

        #4
        ThankYou

        jabe

        Thankyou very much for your reply...

        This approach is much better than my original code and i have implemented it in my code..


        Much appreciated..


        Regards FWR

        Comment

        • jabe
          Senior Member
          • Dec 2014
          • 705

          #5
          Glad to be of assistance!

          Comment

          Working...
          X