Skip to content

Commit

Permalink
huobi default lever rate 20
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Nov 14, 2019
1 parent a4d246e commit df29e4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Map/RequestTraderMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function buy(array $data){
$data['direction']=$map['direction']='buy';
$map['offset']=$data['offset'] ?? ($data['_entry'] ? 'open' : 'close');
$map['client_order_id']=$data['_client_id'] ?? ($data['client_order_id'] ?? '');
$map['lever_rate']=$data['lever_rate'] ?? 10;
$map['lever_rate']=$data['lever_rate'] ?? 20;

//市价单与限价单的参数映射
if(isset($data['_price'])){
Expand Down Expand Up @@ -221,7 +221,7 @@ function sell(array $data){
$data['direction']=$map['direction']='sell';
$map['offset']=$data['offset'] ?? ($data['_entry'] ? 'open' : 'close');
$map['client_order_id']=$data['_client_id'] ?? ($data['client_order_id'] ?? '');
$map['lever_rate']=$data['lever_rate'] ?? 10;
$map['lever_rate']=$data['lever_rate'] ?? 20;

//市价单与限价单的参数映射
if(isset($data['_price'])){
Expand Down

0 comments on commit df29e4a

Please sign in to comment.