Skip to content

Commit

Permalink
Merge pull request #55 from mhdi-khosravi/master
Browse files Browse the repository at this point in the history
Add futures TestOrder
  • Loading branch information
zhouaini528 authored Jan 29, 2024
2 parents 21dbb55 + 7f0576a commit 5110d83
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Api/Futures/Trade.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ public function postOrder(array $data = [], string $version = Version::V1)
$this->data = array_merge($this->data, $data);
return $this->exec();
}
/*
*POST /fapi/v1/order/test (HMAC SHA256)
*/
public function postTestOrder(array $data = [], string $version = Version::V1)
{
$this->type = 'POST';
$this->path = '/fapi/' . $version . '/order/test';
$this->data = array_merge($this->data, $data);
return $this->exec();
}

/*
*POST /fapi/v1/batchOrders (HMAC SHA256)
Expand Down

0 comments on commit 5110d83

Please sign in to comment.