diff --git a/src/Api/Trade.php b/src/Api/Trade.php index 34493c9..02e2464 100644 --- a/src/Api/Trade.php +++ b/src/Api/Trade.php @@ -47,6 +47,7 @@ public function postOrder(array $data){ $this->path='/api/v3/order'; $data['timestamp']=time().'000'; + $data['newOrderRespType']=$data['newOrderRespType'] ?? 'ACK'; switch (strtoupper($data['type'])){ case 'LIMIT':{ diff --git a/tests/trade.php b/tests/trade.php index 4675ae3..6197592 100644 --- a/tests/trade.php +++ b/tests/trade.php @@ -37,7 +37,7 @@ $result=$binance->user()->getOrder([ 'symbol'=>'BTCUSDT', 'orderId'=>$result['orderId'], - 'origClientOrderId'=>$result['origClientOrderId'], + 'origClientOrderId'=>$result['clientOrderId'], ]); print_r($result); }catch (\Exception $e){ @@ -49,7 +49,7 @@ $result=$binance->trade()->deleteOrder([ 'symbol'=>'BTCUSDT', 'orderId'=>$result['orderId'], - 'origClientOrderId'=>$result['origClientOrderId'], + 'origClientOrderId'=>$result['clientOrderId'], ]); print_r($result); }catch (\Exception $e){