Suspend Grid Order
Suspend a running grid order. The grid stops triggering new orders but is kept intact, so it can be resumed later with Restart Grid Order. Use suspend when you want to pause the strategy without losing its configuration.
SDK Links
Python | longbridge.openapi.GridContext.suspend |
Rust | longbridge::grid::GridContext#suspend |
Node.js | GridContext#suspend |
Java | GridContext.getSuspend |
C++ | longbridge::grid::GridContext::suspend |
Request
| HTTP Method | POST |
| HTTP URL | /v1/gridtrading/suspend |
Parameters
Content-Type: application/json; charset=utf-8
| Name | Type | Required | Description |
|---|---|---|---|
| order_id | string | YES | Grid order ID, example: 764609681686573056 |
Request Example
Response
Response Headers
- Content-Type: application/json
Response Example
json
{
"code": 0,
"message": "success",
"data": {}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | The grid order was suspended successfully. | None |
| 400 | The request was rejected with an incorrect request parameter. | None |