diff --git a/php-binance-api.php b/php-binance-api.php index f85077c0..a18b3697 100755 --- a/php-binance-api.php +++ b/php-binance-api.php @@ -2987,7 +2987,7 @@ public function ocoOrder(string $side, string $symbol, $quantity, $price, $stopp $error = "Parameter stopprice expected numeric for ' $side . ' ' . $symbol .', got " . gettype($stopprice); trigger_error($error, E_USER_ERROR); } else { - $opt['stopprice'] = $stopprice; + $opt['stopPrice'] = $stopprice; } if (is_null($stoplimitprice) === false && empty($stoplimitprice) === false) {