Correct json string syntax for Replace Orders

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brickwall3031
    Junior Member
    • Apr 2021
    • 14

    #1

    Correct json string syntax for Replace Orders

    I cannot for the life of me get a json request to go through for replace orders. Can anyone advise what the issue is with the following?

    '{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/replaceOrders", "params":{"marketId: "1.192740774", instructions":[{"betId": "255074343263", "newPrice": "95.0"}]}, "id": 1}'

    I tried without the curly brackets inside the instructions '[ ]' box but it didn't work either

    also can you do this for more than one bet? Do they have to be under the same market ID if so?
  • brickwall3031
    Junior Member
    • Apr 2021
    • 14

    #2
    I also tried '{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/replaceOrders", "params":{"marketId: "1.192740774", instructions":[{"betId": "255074343263", "newPrice": 95.0}]}, "id": 1}' - no quotations around newPrice.

    Comment

    • WTPooh
      Member
      • May 2012
      • 88

      #3
      Missing quotation mark before instructions.

      '{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/replaceOrders", "params":{"marketId: "1.192740774", "instructions":[{"betId": "255074343263", "newPrice": 95.0}]}, "id": 1}'

      Comment

      • brickwall3031
        Junior Member
        • Apr 2021
        • 14

        #4
        good spot, thanks!

        Comment

        Working...
        X