listMarketBook with error reply

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tonbet
    Junior Member
    • Dec 2013
    • 1

    #1

    listMarketBook with error reply

    Hi guys,

    I´m doing this request with this json post data:

    '{&lf; "jsonrpc": "2.0",&lf; "method": "SportsAPING/v1.0/listMarketBook",&lf; "params": {&lf; "marketIds": [ "1.112314551", "1.112314551", "1.112314553" ],"priceProjection": ["EX_BEST_OFFERS"] },&lf; "id": 1&lf;}'

    URI:"https://api.betfair.com/exchange/betting/json-rpc/v1"

    and getting:

    {"jsonrpc":"2.0","error":{"code":-32602,"message":"DSC-0018"},"id":1}

    Anyone know why?
  • AlgoTrader
    Junior Member
    • Mar 2012
    • 243

    #2
    There is my working example:
    It seems your JSON is invalid, please have a detailed look to priceProjection

    Code:
    Request:{
      "jsonrpc": "2.0",
      "id": 3,
      "method": "SportsAPING/v1.0/listMarketBook",
      "params": {
        "marketIds": [
          "1.112335290"
        ],
        "matchProjection": "NO_ROLLUP",
        "priceProjection": {
          "priceData": [
            "EX_ALL_OFFERS",
            "EX_TRADED"
          ]
        }
      }
    }
    Betfair Bots Made Easy

    Comment

    Working...
    X