Skip to content

Commit

Permalink
Merge pull request #18 from mohammad-rj/master
Browse files Browse the repository at this point in the history
update usdt future base on binance doc
  • Loading branch information
zhouaini528 authored May 21, 2021
2 parents 224c780 + 33ff6f1 commit 63a468f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 19 deletions.
14 changes: 7 additions & 7 deletions src/Api/Futures/Market.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,21 +233,21 @@ public function getGlobalLongShortAccountRatio(array $data=[]){
}

/**
*GET /futures/data/takerBuySellVol
* GET /futures/data/takerlongshortRatio
* */
public function getTakerBuySellVol(array $data=[]){
public function getTakerlongshortRatio(array $data=[]){
$this->type='GET';
$this->path='/futures/data/takerBuySellVol';
$this->path='/futures/data/takerlongshortRatio';
$this->data=$data;
return $this->exec();
}

/**
*GET /futures/data/basis
*GET /fapi/v1/lvtKlines
* */
public function getBasis(array $data=[]){
public function getLvtKlines(array $data=[]){
$this->type='GET';
$this->path='/futures/data/basis';
$this->path='/fapi/v1/lvtKlines';
$this->data=$data;
return $this->exec();
}
Expand All @@ -261,4 +261,4 @@ public function getIndexInfo(array $data=[]){
$this->data=$data;
return $this->exec();
}
}
}
20 changes: 10 additions & 10 deletions src/Api/Futures/Trade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ public function getPositionSideDual(array $data=[]){
return $this->exec();
}

/*
* GET /fapi/v1/multiAssetsMargin (HMAC SHA256)
*/
public function getMultiAssetsMargin(array $data=[]){
$this->type='get';
$this->path='/fapi/v1/multiAssetsMargin';
$this->data=array_merge($this->data,$data);
return $this->exec();
}

/*
*POST /fapi/v1/order (HMAC SHA256)
*/
Expand Down Expand Up @@ -138,14 +148,4 @@ public function getPositionMarginHistory(array $data=[]){
$this->data=array_merge($this->data,$data);
return $this->exec();
}

/*
*GET /fapi/v1/positionRisk (HMAC SHA256)
*/
public function getPositionRisk(array $data=[]){
$this->type='get';
$this->path='/fapi/v1/positionRisk';
$this->data=array_merge($this->data,$data);
return $this->exec();
}
}
22 changes: 20 additions & 2 deletions src/Api/Futures/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@ public function getAccount(array $data=[]){
return $this->exec();
}

/**
*GET /fapi/v1/positionRisk (HMAC SHA256) USER_DATA
**/
public function getPositionRisk(array $data=[]){
$this->type='get';
$this->path='/fapi/v1/positionRisk';
$this->data=array_merge($this->data,$data);
return $this->exec();
}

/**
*GET /fapi/v1/userTrades (HMAC SHA256) USER_DATA
* */
Expand Down Expand Up @@ -139,8 +149,16 @@ public function getAdlQuantile(array $data=[]){
return $this->exec();
}



/**
* GET /fapi/v1/commissionRate (HMAC SHA256)
* */
public function getCommissionRate(array $data=[]){
$this->type='GET';
$this->path='/fapi/v1/commissionRate';
$this->data=array_merge($this->data,$data);
return $this->exec();
}
positionRisk
/**
* POST /fapi/v1/listenKey
*/
Expand Down

0 comments on commit 63a468f

Please sign in to comment.