Cancel All Orders
Cancel all orders.
Header Parameters
- apiKey string
A UTA sub account API key is provided by default
- secret string
A UTA sub account API key is provided by default
- application/json
Request Body
- category string required
Possible values: [
linear
,inverse
,option
,spot
]Product type
- symbol string
Symbol name. Required if not passing baseCoin or settleCoin
- baseCoin string
Cancel by base coin. Required if not passing symbol or settleCoin
- settleCoin string
Cancel by settle coin. Does not support
spot
. Required if not passing symbol or baseCoin
Responses
- 200
successful operation
POST /v5/order/cancel-all
Request
Request
curl -L -X POST 'https://api-testnet.bybit.com/v5/order/cancel-all' \
-H 'Content-Type: application/json' \
--data-raw '{
"category": "linear",
"symbol": "BTCUSDT",
"baseCoin": null,
"settleCoin": null
}'
curl -L -X POST 'https://api-testnet.bybit.com/v5/order/cancel-all' \
-H 'Content-Type: application/json' \
--data-raw '{
"category": "linear",
"symbol": "BTCUSDT",
"baseCoin": null,
"settleCoin": null
}'
curl -L -X POST 'https://api-testnet.bybit.com/v5/order/cancel-all' \
-H 'Content-Type: application/json' \
--data-raw '{
"category": "linear",
"symbol": "BTCUSDT",
"baseCoin": null,
"settleCoin": null
}'
curl -L -X POST 'https://api-testnet.bybit.com/v5/order/cancel-all' \
-H 'Content-Type: application/json' \
--data-raw '{
"category": "linear",
"symbol": "BTCUSDT",
"baseCoin": null,
"settleCoin": null
}'
curl -L -X POST 'https://api-testnet.bybit.com/v5/order/cancel-all' \
-H 'Content-Type: application/json' \
--data-raw '{
"category": "linear",
"symbol": "BTCUSDT",
"baseCoin": null,
"settleCoin": null
}'
curl -L -X POST 'https://api-testnet.bybit.com/v5/order/cancel-all' \
-H 'Content-Type: application/json' \
--data-raw '{
"category": "linear",
"symbol": "BTCUSDT",
"baseCoin": null,
"settleCoin": null
}'
curl -L -X POST 'https://api-testnet.bybit.com/v5/order/cancel-all' \
-H 'Content-Type: application/json' \
--data-raw '{
"category": "linear",
"symbol": "BTCUSDT",
"baseCoin": null,
"settleCoin": null
}'