Withdraw Order
This API is used to withdraw an open order.
SDK Links
Python |
Rust |
Go |
Node.js |
Request
HTTP Method | DELETE |
HTTP URL | /v1/trade/order |
Parameters
Content-Type: application/json; charset=utf-8
Name | Type | Required | Description |
---|---|---|---|
order_id | string | YES | Order ID |
Request Example
from longport.openapi import TradeContext, Config
config = Config.from_env()
ctx = TradeContext(config)
ctx.cancel_order("709043056541253632")
Response
Response Headers
- Content-Type: application/json
Response Example
{
"code": 0,
"message": "success",
"data": {}
}
Response Status
Status | Description | Schema |
---|---|---|
200 | The submission was successful and the order was commissioned. | None |
400 | The withdrawal was rejected with an incorrect request parameter. | None |