取消网格订单
取消网格订单。网格会立即停止,不再挂出新的触发订单。取消是不可逆的——已取消的网格无法重启,如需继续请重新提交新的网格订单。
SDK Links
Python | longbridge.openapi.GridContext.cancel |
Rust | longbridge::grid::GridContext#cancel |
Node.js | GridContext#cancel |
Java | GridContext.getCancel |
C++ | longbridge::grid::GridContext::cancel |
Request
| HTTP Method | POST |
| HTTP URL | /v1/gridtrading/cancel |
Parameters
Content-Type: application/json; charset=utf-8
| Name | Type | Required | Description |
|---|---|---|---|
| order_id | string | YES | 网格订单 ID,例如:764609681686573056 |
Request Example
Response
Response Headers
- Content-Type: application/json
Response Example
json
{
"code": 0,
"message": "success",
"data": {}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | 网格订单取消成功。 | None |
| 400 | 请求被拒绝,请求参数错误。 | None |