POST/v1/api/cancelOrder
URL:
https://api.koindex.io/POST/v1/api/cancelOrder?api_key=****&auth_nonce=1524165420000&auth_sign= 0aeb680bb3152c14f849037af45f9eb1&pair=ETH_USDT
&order_id=441346014116890624
Request field:
api_key |
Your API key | String |
auth_nonce |
Timestamp | String |
auth_sign |
MD5coding.MD5(api_key+auth_nonce+order_id+pair+apiSecret) | String |
pair |
A trade pair name. eg. ETH_USDT | String |
order_id |
The id of the order you want to cancel | String |
Success:
{
"data": {
"result": true,
"orderid": "465138077950068736",
"detail": [
"465896824678959104",
"ETH_USDT",
"1531120058947",
"0.120000",
"1.0000",
"0.010000",
"0.010000",
"LIMIT",
"-1",
"4"
] },
"channel": "auth-cancel-order"
}
result |
The status of the requested operation, truemeans successfully,false is failure. |
orderid |
The ID of previously canceled order |
detail |
Order ID, Pair name, Order creation time, Completed amount, Total amount of this order, Price of specify, when the specify price is positive means bids and a negative number indicates asks. Price of trade, Order type: MARKET / LIMIT / STOP-LIMITassociated orders: -1 means no associated orders, only if STOP-LIMIT is defined.Order status: 1-Start / 2-Partially Executed / 3-Executed / 4-Cancelled |
channel |
auth-make-order | auth-cancel-order | auth-orders | auth-orders-history | auth-trades-history | auth-detail-order |
Fail:
{
data: {
result: false,
orderId: "441346014116890624"
},
channel: "auth-cancel-order"
}