Announcement

Collapse
No announcement yet.

placeOrders return DSC-0018

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

  • placeOrders return DSC-0018

    Hello, I'm going to freak out with this API request. I'm trying to make a bet. Here is body of my JSON request.

    {
    "marketId":"1.192999822",
    "instructions": [
    {
    "selectionID":"48350",
    "side":"BACK",
    "orderType":"LIMIT",
    "limitOrder":{
    "size":"2",
    "price":"2",
    "persistenceType":"LAPSE"
    }
    }
    ]
    }


    As response I get " "faultstring": "DSC-0018", - MandatoryNotDefined "
    Which parameter I don't provide?


    Thank you!
    You do not have permission to view this gallery.
    This gallery has 1 photos.

  • #2
    hi

    Not 100% sure this is the issue but try adding handicap = 0 ("handicap":0) at the same indent level as selectionId.

    Does that make a difference ?

    Ah just noticed something else.

    The numeric values in the JSON should not be in speechmarks when they go down the wires. I am not sure if yours is like that or not ? It might be just the way you captured the data to post in here.


    Regards Geoff
    Last edited by geoffw123; 24-01-2022, 09:10 PM.

    Comment


    • #3
      "selectionId" instead of "selectionID"

      Comment


      • #4
        Originally posted by WTPooh View Post
        "selectionId" instead of "selectionID"
        Oh, thank you. You saved me! That was problem....


        The numeric values in the JSON should not be in speechmarks when they go down the wires. I am not sure if yours is like that or not ? It might be just the way you captured the data to post in here.
        It's seems that it works with speechmarks and without it.....

        Comment


        • #5
          ah well spotted WTPooh, I missed that one

          Comment

          Working...
          X