Required parameter error when calling listMarketBook

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • asp
    Junior Member
    • Mar 2023
    • 5

    #1

    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.
  • WTPooh
    Member
    • May 2012
    • 88

    #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

    • asp
      Junior Member
      • Mar 2023
      • 5

      #3
      Cheers mate. Will rework and test today.

      Comment

      • asp
        Junior Member
        • Mar 2023
        • 5

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

        Comment

        Working...
        X