listMarketCatalogue max results

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ajw
    Junior Member
    • Sep 2018
    • 14

    #1

    listMarketCatalogue max results

    Docs say the limit is 1000
    maxResults int limit on the total number of results returned, must be greater than 0 and less than or equal to 1000
    I get an error when I go above 100, how do i increase above 100 ?

    {
    "errorCode": "TOO_MUCH_DATA",
    "errorDetails": ""
    }
  • BetfairDeveloperProgram
    Administrator
    • Oct 2008
    • 679

    #2
    Hi ajw

    TOO_MUCH_DATA indicates that you are exceeding the Market Data Request limits documented via https://docs.developer.betfair.com/d...Request+Limits

    Please check your query parameters in relation to the above.

    Thanks

    Neil

    Comment

    • indysoftntbitf
      Junior Member
      • Oct 2018
      • 1

      #3
      Hello, I am having an issue with maxResults and i'm trying to determine if it is my code or because i'm using the free version of the API. I'm setting the maxResults to 10 and I can see multiple lines are being returned via the Debug function. However, when I run through my foreach loop, I'm only able to display one result. I'm using the php code example posted on github as my example. Can you tell me if i'm limited to echoing a single market because of the API or if it's the code? For reference, here is the foreach function I am using:

      function printMarketIdAndRunners($nextTennisMarket)
      {
      foreach ($nextTennisMarket->runners as $runner) {
      echo "SelectionId: " . $runner->selectionId . " RunnerName: " . $runner->runnerName . "\n";
      }
      }

      Comment

      Working...
      X