Skip to content

Commit

Permalink
huobi sell-market bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Jul 9, 2019
1 parent 4a03a42 commit 5aebd06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Map/RequestTraderMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,11 @@ function sell(array $data){
//市价单与限价单的参数映射
if(isset($data['_number']) && isset($data['_price'])){
$map['price']=$data['_price'];
$map['type']=$data['type'] ?? 'buy-limit';
$map['type']=$data['type'] ?? 'sell-limit';
$map['amount']=$data['_number'] ?? $data['amount'];
}else {
$map['type']=$data['type'] ?? 'buy-market';
$map['amount']=$data['_price'] ?? $data['amount'];//市价买单时表示买多少钱
$map['type']=$data['type'] ?? 'sell-market';
$map['amount']=$data['_number'] ?? $data['amount'];//市价卖单时表示卖多少币
}
break;
}
Expand Down

0 comments on commit 5aebd06

Please sign in to comment.