https://stackoverflow.com/questions/50013678/bitmex-api-php-cancel-1-order-not-working
Here is the fix
In the function
private function authQuery($data) {
after
elseif($method == "DELETE") {
replace :
$params = json_encode($data['params']);
with:
$params = http_build_query( $data['params'] );