diff --git a/bingX/perpetual/v2/trade.py b/bingX/perpetual/v2/trade.py index b5590e9..d43f7d9 100644 --- a/bingX/perpetual/v2/trade.py +++ b/bingX/perpetual/v2/trade.py @@ -12,6 +12,9 @@ def trade_order(self, positionSide: str = None, price: float = None, quantity: float = None, + takeProfit: dict = None, + stopLoss: dict = None, + stopGuaranteed: dict = None, stopPrice: float = None, recvWindow: int = None, reduceOnly: bool = None, @@ -28,6 +31,9 @@ def trade_order(self, "positionSide": positionSide, "price": price, "quantity": quantity, + "takeProfit": takeProfit, + "stopLoss": stopLoss, + "stopGuaranteed": stopGuaranteed, "stopPrice": stopPrice, "recvWindow": recvWindow, "reduceOnly": reduceOnly @@ -44,6 +50,9 @@ def trade_order_test(self, positionSide: str = None, price: float = None, quantity: float = None, + takeProfit: dict = None, + stopLoss: dict = None, + stopGuaranteed: dict = None, stopPrice: float = None, recvWindow: int = None, reduceOnly: bool = None, @@ -60,6 +69,9 @@ def trade_order_test(self, "positionSide": positionSide, "price": price, "quantity": quantity, + "takeProfit": takeProfit, + "stopLoss": stopLoss, + "stopGuaranteed": stopGuaranteed, "stopPrice": stopPrice, "recvWindow": recvWindow, "reduceOnly": reduceOnly