Skip to main content

Cancel Algo Order

Type: TRADE

Weight: 1

DELETE /fapi/v1/algoOrder

Request

DELETE /fapi/v1/algoOrder?algoId=12345&timestamp=<ms>&signature=<hex>

Query params

NameTypeRequiredNotes
algoIdlongone of
clientAlgoIdstringone of

Response — 200

{ "algoId": 12345, "clientAlgoId": "my-stop-1", "code": "200", "msg": "success" }

Cancelling an order that is already CANCELED returns success again (idempotent — deliberately safer than Binance's -2011 on a retry under packet loss).

Errors

HTTPcodemsg
400-1102Neither algoId nor clientAlgoId sent.
400-2011Order already triggered / executed / expired / failed.
404-2013Order does not exist.

Authentication failures (INVALID_API_KEY, API_KEY_DISABLED, IP_NOT_ALLOWED, SIGNATURE_INVALID) apply to every signed endpoint and use Sparky's {"success":false,"error":{...}} envelope; see Error Codes.