Skip to main content

Stop Strategy

Stop a running strategy. Once stopped, the strategy cannot be resumed.

Effects upon stopping:

  • Strategy status changes to Terminated
  • Unfilled orders are automatically canceled
  • Partially filled orders have their remaining quantity canceled
  • Already-filled orders are not affected

HTTP Request

POST/v5/strategy/stop

Request Parameters

ParameterRequiredTypeComments
strategyIdtruestringID of the strategy to stop

Response Parameters

ParameterTypeComments
strategyIdstringID of the stopped strategy

Request Example

POST /v5/strategy/stop HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1773711467000
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json

{
"strategyId": "119b6211-2611-461b-be5e-5ac557099e82"
}

Response Example

{
"retCode": 0,
"retMsg": "success",
"result": {
"strategyId": "119b6211-2611-461b-be5e-5ac557099e82"
},
"retExtInfo": {},
"time": 1773711467052
}