Hello,
i want to create a stop loss limit order, here’s my code
order = client.create_margin_order(
symbol=symbol,
side=SIDE_BUY,
type=ORDER_TYPE_STOP_LOSS_LIMIT,
timeInForce=TIME_IN_FORCE_GTC,
quantity=qty,
price=price, # = 3173.7
stopPrice=stopPrice, # = 2983.28
isIsolated="TRUE"
)
This code return the error
APIError(code=-2010): Stop price would trigger immediately.