mexcdevelop/mexc-api-sdk

orderType = 'STOP_LOSS_LIMIT' gives me a {"msg":"invalid type","code":500}

Opened this issue · 0 comments

Hello,

I've tried with ccxt but no way to put a stop loss limit order so I tried with the API but I get the same error
{"msg":"invalid type","code":500}

Here's the code

symbol = "NTXUSDT"
orderType = "STOP_LOSS_LIMIT"
side = "SELL"
amount = 100
sell_price = 0.069
triggerPrice = 0.07
    
order = client.new_order(symbol, side, orderType, options={ "stopPrice": sell_price,"quantity": amount, "price": sell_price })

Any thoughts ?

Thanks