Cannot nake proper marketFilter to subscribe markets

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 1hor
    Junior Member
    • Sep 2019
    • 4

    #1

    Cannot nake proper marketFilter to subscribe markets

    When trying to subscribe markets I specify market types (WIN and PLACE) and date range (today's only)
    but getting an error that i tried to subscribe 18 000 markets

    could someone tell where i made mistake?
    {"op":"marketSubscription","id":6,"marketFilter":{ "textQuery":null,"exchangeIds":null,"eventTypeIds" :null,"eventIds":null,"competitionIds":null,"marke tIds":null,"venues":null,"bspOnly":null,"turnInPla yEnabled":null,"inPlayOnly":true,"marketBettingTyp es":null,"marketCountries":["GB","IE"],"marketTypeCodes":["WIN","PLACE"],"marketStartTime":{"from":"2019-09-20T11:34:05.3535344+02:00","to":"2019-09-21T00:00:00+02:00"},"withOrders":null}}
  • LetsGo
    Senior Member
    • Oct 2018
    • 112

    #2
    The way to solve a programming problem like this to simplify your code until you find the part that is failing.

    Comment

    • jabe
      Senior Member
      • Dec 2014
      • 705

      #3
      Have a look here
      https://docs.developer.betfair.com/d...riptionMessage
      then scroll down to Market Filtering/MarketFilter and check your parameters. Several of them do not match what is specified.

      You shouldn't need to use Null for parameters you're not specifying. Omit those.

      Comment

      • 1hor
        Junior Member
        • Sep 2019
        • 4

        #4
        Thank you, fixed

        Comment

        Working...
        X