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