diff --git a/php-binance-api.php b/php-binance-api.php index a18b3697..eb7a6986 100755 --- a/php-binance-api.php +++ b/php-binance-api.php @@ -1538,7 +1538,11 @@ public function order(string $side, string $symbol, $quantity, $price, string $t if (isset($flags['newOrderRespType'])) { $opt['newOrderRespType'] = $flags['newOrderRespType']; } - + + if (isset($flags['newClientOrderId'])) { + $opt['newClientOrderId'] = $flags['newClientOrderId']; + } + $qstring = ($test === false) ? "v3/order" : "v3/order/test"; return $this->httpRequest($qstring, "POST", $opt, true); }