future-private: add placeTpSlOrder request

This commit is contained in:
mahdi msr committed 2025-09-29 00:58:02 +03:30
1 parent 526ef64ad8
commit bf185918e1
5 files changed
+635 -1

No files matched your search

@@ -0,0 +1,39 @@
<?php
namespace Msr\LaravelBitunixApi\Requests;
use Psr\Http\Message\ResponseInterface;
interface PlaceTpSlOrderRequestContract
{
/**
* Place 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)
* @param string|null $tpOrderType Take-profit order type (LIMIT/MARKET)
* @param string|null $tpOrderPrice Take-profit order price
* @param string|null $slOrderType Stop-loss order type (LIMIT/MARKET)
* @param string|null $slOrderPrice Stop-loss order price
* @param string|null $tpQty Take-profit order quantity (base coin)
* @param string|null $slQty Stop-loss order quantity (base coin)
*/
public function placeTpSlOrder(
string $symbol,
string $positionId,
?string $tpPrice = null,
?string $tpStopType = null,
?string $slPrice = null,
?string $slStopType = null,
?string $tpOrderType = null,
?string $tpOrderPrice = null,
?string $slOrderType = null,
?string $slOrderPrice = null,
?string $tpQty = null,
?string $slQty = null
): ResponseInterface;
}