Skip to content

api cancelorder

ntwerd edited this page Apr 12, 2023 · 3 revisions

Cancel Order


Cancel placed order.

URL

http://122.8.148.106/robot/api/v1/cancelOrder/<brokerCode>

Method:

POST

Required:

Header : X-API-KEY: <XXXXXX> , Content-Type: application/json

Payload

  • accountNo : your account number
  • orderNo : Order number that you want to cancel
  • symbol : product symbol
  • side : B, S
  • priceType :
    • ATO
    • ATC
    • LIMIT
    • MP
    • MP-MKT
    • MP-MTL

Sample Payload

{  
   "accountNo":"1234567-8",
   "orderNo":"4867",
   "symbol":"MINT",
   "side":"B",
   "priceType":"LIMIT"
}

Success Response:

  • Code: 200

    Content:

{  
   "status":"T",
   "message":"Success",
   "data":{  
      "orderNo":"4867"
   }
}

Error Response:

  • Code: 200

    Content:

{
    "status": "F",
    "message": "Account not found",
    "data": {}
}

OR

  • Code: 200

    Content:

{
    "status": "F",
    "message": "QWERD is unavailable to trade with this account type.",
    "data": {}
}

Clone this wiki locally