2
0
forked from kodorvan/stcs

Cancelled check tp sl price

This commit is contained in:
algizn97
2025-10-02 12:08:53 +05:00
parent 1981510963
commit a9f7c4f7c4

View File

@@ -382,11 +382,6 @@ async def open_positions(
take_profit_price = max(take_profit_price, 0) take_profit_price = max(take_profit_price, 0)
stop_loss_price = max(stop_loss_price, 0) stop_loss_price = max(stop_loss_price, 0)
if safe_float(take_profit_price) < safe_float(price_symbol):
take_profit_price = None
if safe_float(stop_loss_price) > safe_float(price_symbol):
stop_loss_price = None
# Place order # Place order
order_params = { order_params = {
"category": "linear", "category": "linear",