future-private: add placePositionTpSlOrder request

This commit is contained in:
mahdi msr committed 2025-09-29 01:14:49 +03:30
1 parent bf185918e1
commit 2fde2137e4
6 files changed
+576 -1

No files matched your search

@@ -0,0 +1,29 @@
<?php
namespace Msr\LaravelBitunixApi\Requests;
use Psr\Http\Message\ResponseInterface;
interface PlacePositionTpSlOrderRequestContract
{
/**
* Place Position TP/SL Order
* When triggered, it will close the position at market price based on the position quantity at that time.
* Each position can only have one Position TP/SL Order
*
* @param string $symbol Trading pair
* @param string $positionId Position ID associated with take-profit and stop-loss
* @param string|null $tpPrice Take-profit trigger price
* @param string|null $tpStopType Take-profit trigger type (LAST_PRICE/MARK_PRICE)
* @param string|null $slPrice Stop-loss trigger price
* @param string|null $slStopType Stop-loss trigger type (LAST_PRICE/MARK_PRICE)
*/
public function placePositionTpSlOrder(
string $symbol,
string $positionId,
?string $tpPrice = null,
?string $tpStopType = null,
?string $slPrice = null,
?string $slStopType = null
): ResponseInterface;
}