php-binance-api.php
public function cancel(string $symbol, $orderid, $flags = [])
    {
        $params = [
            "symbol" => $symbol,
            "orderId" => $orderid,
        ];
        return $this->httpRequest("v3/order", "DELETE", array_merge($params, $flags), true);
    }
public function cancel(string $symbol, $orderid, $flags = [])
    {
        $params = [
            "symbol" => $symbol,
            "orderId" => $orderid,
        ];
        return $this->httpRequest("v3/order", "DELETE", array_merge($params, $flags), true);
    }
public function cancel ( string $ symbol , $ orderid , $ flags = [ ] ) { $ params = [ "symbol" => $ symbol , "orderId" => $ orderid , ] ; return $ this -> httpRequest ( "v3/order" , "DELETE" , array_merge ( $ params , $ flags ) , true ) ; }
cancel attempts to cancel a currency order

$orderid = "123456789";
$order = $api->cancel("BNBBTC", $orderid);

@param $symbol string the currency symbol
@param $orderid string the orderid to cancel
@param $flags array of optional options like ["side"=>"sell"]
@return array with error message or the order details
@throws \Exception
cancel attempts to cancel a currency order