Binance API - cancel order not working

Hi, that my first time with binance api and have little problem, get my account balance working, set new order working, get my orders list working, but cancel order not working.
I’m using script from this site:


To cancel my order i write script:
$cancel = signedRequest(‘DELETE’, ‘api/v3/order’, [
‘symbol’ => $market,
‘orderId’ => $orderId,
‘origClientOrderId’ => $clientOrderId
]);
$market is currency symbol - its ok
$orderId its ok
$clientOrderId its ok
When send request i get response:

[code]array(18) {
[“symbol”]=>
string(12) “XXXXXXXX”
[“orderId”]=>
int(XXXXXXXX)
[“orderListId”]=>
int(-1)
[“clientOrderId”]=>
string(36) “XXXXXXXX”
[“price”]=>
string(10) “XXXXXXXX”
[“origQty”]=>
string(15) “XXXXXXXX”
[“executedQty”]=>
string(10) “0.00000000”
[“cummulativeQuoteQty”]=>
string(10) “0.00000000”
[“status”]=>
string(3) “NEW”
[“timeInForce”]=>
string(3) “GTC”
[“type”]=>
string(5) “LIMIT”
[“side”]=>
string(3) “BUY”
[“stopPrice”]=>
string(10) “0.00000000”
[“icebergQty”]=>
string(10) “0.00000000”
[“time”]=>
int(XXXXXXXX)
[“updateTime”]=>
int(XXXXXXXX)
[“isWorking”]=>
bool(true)
[“origQuoteOrderQty”]=>
string(10) “0.00000000”

Status is still NEW, but should be CANCELED nad order still is on binance.
Where is my error? What can i do with this problem? I try with "DELETE api/v3/openOrders " but get same info, status still NEW

PHP: 7.2

You need to explicitly tell the request to use “DELETE”. Otherwise it uses “GET” by default

Do you solve the problem???
I m with the same

Também estou com o mesmo problema alguém já solucionou

Hi, everyone.

I am trying to cancel one specific order via API but it is not running. The status of the order does not change to CANCELED. Why is it not running ?

I am using DELETE and the endpoint in the same way is reported in this topic… any additional safety configuration is required to cancel orders ?

$response = signedRequest(‘DELETE’, ‘api/v3/order’, [‘symbol’ => $simbolo, ‘orderId’ => $orderId ] );
var_dump ($response );

It allway the order has the status ‘NEW’… never cancel the order… What is wrong ?