Announcement

Collapse
No announcement yet.

Required parameter error when calling listMarketBook

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Required parameter error when calling listMarketBook

    Calling listMarketBook with these parameters. The docs indicate that only marketIds are required (I've tried just that parameter). No idea what I'm getting wrong here. Any advice welcome.

    [ { "jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketBook", "params": { "filter": { "marketIds": [ "1.211451486" ] }, "orderProjection": [ "EXECUTABLE" ], "priceProjection": { "priceData": [ "SP_AVAILABLE" ] }, "matchProjection": [ "NO_ROLLUP" ] } } ]​​

    This is the error:

    {"jsonrpc"=>"2.0", "error"=>{"code"=>-32602, "message"=>"DSC-0018"}}

    Cheers.

  • #2
    1. There is no "filter" parameter in listMarketBook.
    2. Errors in "orderProjection" and "matchProjection" parameters.
    Correct request:
    { "jsonrpc": "2.0", "method": "SportsAPING/v1.0/listMarketBook", "params": { "marketIds": [ "1.211451486" ] , "orderProjection": "EXECUTABLE", "priceProjection": { "priceData": [ "SP_AVAILABLE" ] }, "matchProjection": "NO_ROLLUP" } }

    Comment


    • #3
      Cheers mate. Will rework and test today.

      Comment


      • #4
        Thank you, all good now. I may even understand the docs now

        Comment

        Working...
        X