-
Notifications
You must be signed in to change notification settings - Fork 2
api cancelorder
ntwerd edited this page Apr 12, 2023
·
3 revisions
Cancel placed order.
http://122.8.148.106/robot/api/v1/cancelOrder/<brokerCode>
POST
Header : X-API-KEY: <XXXXXX> , Content-Type: application/json
-
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
{
"accountNo":"1234567-8",
"orderNo":"4867",
"symbol":"MINT",
"side":"B",
"priceType":"LIMIT"
}
-
Code: 200
Content:
{
"status":"T",
"message":"Success",
"data":{
"orderNo":"4867"
}
}
-
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": {}
}