TextQuery for market with space in the name don't return any result

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ZINZENZON
    Junior Member
    • Jul 2013
    • 3

    #1

    TextQuery for market with space in the name don't return any result

    there is the example of the request:
    {"jsonrpc":"2.0","method":"SportsAPING/v1.0/listMarketCatalogue","params":{"filter":{"textQuer y":"Match Odds","marketIds":["1.11241820"]},"locale":null,"maxResults":1000,"marketProjectio n":["COMPETITION","EVENT","EVENT_TYPE","MARKET_START_T IME","RUNNER_METADATA"]},"id":1}

    Betfair return to this request a empty string. If i remove the filter textQuery or if i query only for 'Match*' works fine but if i query 'Match Odds' betfair don't return any result.

    Someone have this problem? Can someone help me?

    Thanks
    Last edited by ZINZENZON; 14-01-2014, 11:15 AM.
  • ZINZENZON
    Junior Member
    • Jul 2013
    • 3

    #2
    Can someone check if have this issue?

    Thanks

    Comment

    • AlgoTrader
      Junior Member
      • Mar 2012
      • 243

      #3
      You try to do something incorrect. If you need match odds markets, then you need to provide filter:{marketTypeCodes:["MATCH_ODDS"]}.

      Have a look

      Code:
      Request:{
        "jsonrpc": "2.0",
        "id": 2,
        "method": "SportsAPING/v1.0/listMarketCatalogue",
        "params": {
          "filter": {
            "eventTypeIds": [
              2
            ],
            "marketTypeCodes": [
              "MATCH_ODDS"
            ]
          },
          "marketProjection": [
            "EVENT",
            "EVENT_TYPE",
            "COMPETITION",
            "MARKET_START_TIME"
          ],
          "maxResults": 1000
        }
      }
      Betfair Bots Made Easy

      Comment

      • ZINZENZON
        Junior Member
        • Jul 2013
        • 3

        #4
        Thanks AlgoTrader for the big Help. You Help me a losts

        Once Again, thanks.

        Comment

        Working...
        X