diff --git a/src/Api/Futures/Market.php b/src/Api/Futures/Market.php index 1112de4..e919a46 100644 --- a/src/Api/Futures/Market.php +++ b/src/Api/Futures/Market.php @@ -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(); } @@ -261,4 +261,4 @@ public function getIndexInfo(array $data=[]){ $this->data=$data; return $this->exec(); } -} +} \ No newline at end of file diff --git a/src/Api/Futures/Trade.php b/src/Api/Futures/Trade.php index 4f8bb39..76ca403 100644 --- a/src/Api/Futures/Trade.php +++ b/src/Api/Futures/Trade.php @@ -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) */ @@ -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(); - } } diff --git a/src/Api/Futures/User.php b/src/Api/Futures/User.php index ef586a7..65c94c2 100644 --- a/src/Api/Futures/User.php +++ b/src/Api/Futures/User.php @@ -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 * */ @@ -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 */