diff --git a/src/remizov_trader/core/spot.py b/src/remizov_trader/core/spot.py index 15e8a15..00776b0 100644 --- a/src/remizov_trader/core/spot.py +++ b/src/remizov_trader/core/spot.py @@ -187,20 +187,19 @@ class SpotExecutor: "symbol": symbol, "amount": amount, "stopPrice": stop_price} try: - # Bybit spot: use tpslOrder instead of StopOrder (triggerDirection not supported) + # Bybit spot: StopOrder — conditional sell, no margin frozen upfront order = self.exchange.create_order( symbol, "market", "sell", amount, params={ "triggerPrice": str(stop_price), - "orderFilter": "tpslOrder", - "slOrderType": "Market", + "orderFilter": "StopOrder", }, ) log.info(f"SAFETY STOP placed: {amount} {coin} trigger=${stop_price:,.2f} " f"order={order.get('id')}") return order except Exception as e: - log.warning(f"SAFETY STOP {symbol} not supported on spot: {e}") + log.warning(f"SAFETY STOP {symbol} failed: {e}") return None def cancel_order(self, symbol: str, order_id: str) -> bool: