取消網格訂單
取消網格訂單。網格會立即停止,不再掛出新的觸發訂單。取消是不可逆的——已取消的網格無法重啟,如需繼續請重新提交新的網格訂單。
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 |