Skip to content

Commit

Permalink
update newOrderRespType defult
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Jun 20, 2019
1 parent 15d36d6 commit dfabbcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Api/Trade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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':{
Expand Down
4 changes: 2 additions & 2 deletions tests/trade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand All @@ -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){
Expand Down

0 comments on commit dfabbcf

Please sign in to comment.