Skip to content

Commit

Permalink
add future api
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Nov 9, 2020
1 parent ae475b7 commit 99c131f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/Api/Futures/Market.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,14 @@ public function getBasis(array $data=[]){
$this->data=$data;
return $this->exec();
}

/**
*GET /fapi/v1/indexInfo
* */
public function getIndexInfo(array $data=[]){
$this->type='GET';
$this->path='/fapi/v1/indexInfo';
$this->data=$data;
return $this->exec();
}
}
2 changes: 1 addition & 1 deletion src/Api/Futures/Trade.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function postCountdownCancelAll(array $data=[]){
*POST /fapi/v1/leverage (HMAC SHA256)
*/
public function postLeverage(array $data=[]){
$this->type='get';
$this->type='post';
$this->path='/fapi/v1/leverage';
$this->data=array_merge($this->data,$data);
return $this->exec();
Expand Down
10 changes: 10 additions & 0 deletions src/Api/Futures/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,14 @@ public function deleteListenKey(array $data=[]){
$this->data=$data;
return $this->exec();
}

/**
*GET /fapi/v1/apiTradingStatus
*/
public function getApiTradingStatus(array $data=[]){
$this->type='get';
$this->path='/fapi/v1/apiTradingStatus';
$this->data=$data;
return $this->exec();
}
}

0 comments on commit 99c131f

Please sign in to comment.