I want to pass ‘reduceOnly’ option to true when I am opening STOP MARKET order in futures api. But when I pass it in my function, it opens order successfully, but ‘reduceOnly’ option value remains false. I am using jaggedsoft/php-binance-api package. Also I checked to see if I am in Hedge mode and I am not, and also ‘closePosition’ option is false, so that is supposed to be ok according to documentation. Any help is appreciated. Here is my code/function.
$stopLossOrder = $api->buy($symbol, $quantity, $price, 'STOP_MARKET', ['stopPrice' => $stopPriceNew, 'reduceOnly' => 'true']);