Skip to content

Commit

Permalink
add post data
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Dec 28, 2021
1 parent 1360e2d commit 94afe86
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Api/Spot/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ class Account extends Request
/**
*
* */
public function get(){
public function get(array $data=[]){
$this->type='GET';
$this->path='/v1/account/accounts';
$this->data=$data;
return $this->exec();
}

Expand All @@ -37,6 +38,7 @@ public function getBalance(array $data=[]){
public function postTransfer(array $data=[]){
$this->type='POST';
$this->path='/v1/account/transfer';
$this->data=$data;
return $this->exec();
}

Expand All @@ -46,6 +48,7 @@ public function postTransfer(array $data=[]){
public function getHistory(array $data=[]){
$this->type='GET';
$this->path='/v1/account/history';
$this->data=$data;
return $this->exec();
}

Expand All @@ -55,6 +58,7 @@ public function getHistory(array $data=[]){
public function getLedger(array $data=[]){
$this->type='GET';
$this->path='/v2/account/ledger';
$this->data=$data;
return $this->exec();
}

Expand All @@ -64,6 +68,7 @@ public function getLedger(array $data=[]){
public function postFuturesTransfer(array $data=[]){
$this->type='POST';
$this->path='/v1/futures/transfer';
$this->data=$data;
return $this->exec();
}
}

0 comments on commit 94afe86

Please sign in to comment.