kucoin-python-sdk
kucoin-python-sdk copied to clipboard
Cancel order error
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