Skip to content

Commit

Permalink
huobi default lever rate 10
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Nov 13, 2019
1 parent 5542b8b commit a4d246e
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'] ?? 20;
$map['lever_rate']=$data['lever_rate'] ?? 10;

//市价单与限价单的参数映射
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'] ?? 20;
$map['lever_rate']=$data['lever_rate'] ?? 10;

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

0 comments on commit a4d246e

Please sign in to comment.