kucoin-python-sdk icon indicating copy to clipboard operation
kucoin-python-sdk copied to clipboard

Cancel order error

Open ffbboy30 opened this issue 4 years ago • 0 comments

Hi, I'm trying to implement an order cancel test. The order works fine Trade_client = Trade(key=api_key, secret=api_secret, passphrase=api_passphrase, is_sandbox=False, url='') order_id = Trade_client.create_market_order('NANO-USDT', 'buy', size='1')`

I wait 5 second and I make a cancel order to stop it Trade_client.cancel_order(order_id['orderId']) and I've an error 200-{"code":"400100","msg":"order_not_exist_or_not_allow_to_cancel"}

Could you help me. Thanks

ffbboy30 avatar May 13 '21 20:05 ffbboy30