From 4814546ad4b0da2d7202d392400d924da8016e4f Mon Sep 17 00:00:00 2001 From: johandev1 <63254432+johandev1@users.noreply.github.com> Date: Tue, 16 Nov 2021 20:45:45 +0700 Subject: [PATCH] Update php-binance-api.php added newClientOrderId flags during sending order --- php-binance-api.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); }