Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Aug 7, 2024
2 parents 997476e + 60a1a9d commit 44ac9c2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Api/Futures/Trade.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,26 @@ public function postOrder(array $data = [], string $version = Version::V1)
$this->data = array_merge($this->data, $data);
return $this->exec();
}
/*
*PUT /fapi/v1/order (HMAC SHA256)
*/
public function putOrder(array $data = [], string $version = Version::V1)
{
$this->type = 'PUT';
$this->path = '/fapi/' . $version . '/order';
$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 44ac9c2

Please sign in to comment.