Stop price would trigger immediately

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.

Hey,
When placing a STOP_LOSS_LIMIT BUY order, the stop price must be be greater than the last price. Use a TAKE_PROFIT_LIMIT BUY order if you intend to place a stop price lower than the last price.