mexcdevelop / mexc-api-sdk

MIT License
173 stars 70 forks source link

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

Open swiinger opened 3 months ago

swiinger commented 3 months ago

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