I want implement OCO in sell but he display error this Invalid orderType.
$base_url = 'fapi/v1/order'
$payload = [
'symbol' => 'BTCUSDT',
'side' => 'SELL',
'type' => 'OCO',
'quantity' => 1,
'price' => 50000,
'stopPrice' => 49000,
'stopLimitPrice' => 48000,
'stopLimitTimeInForce' => 'GTC',
'timestamp' => round(microtime(true) * 1000),
];
Error :
Array ( [code] => -1116 [msg] => Invalid orderType. )