Skip to content

Commit

Permalink
binance avgPrice
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Dec 24, 2021
1 parent e6909fe commit 17c3401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Map/ResponseTraderMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ function show(array $data){
break;
}
default:{
$map['_price_avg']=$data['result']['avgPrice'] ?? 0;
$map['_price_avg']=isset($data['result']['avgPrice']) ? $data['result']['avgPrice'] : 0;
$map['_filed_amount']=bcmul(strval($data['result']['executedQty']),strval($data['result']['avgPrice']),16);
break;
}
Expand Down

0 comments on commit 17c3401

Please sign in to comment.