Kucoin / kucoin-python-sdk

MIT License
45 stars 15 forks source link

Cancel order error #22

Closed ffbboy30 closed 1 month ago

ffbboy30 commented 3 years ago

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

ISAAC-XXYYZZ commented 1 month ago

Due to many changes in the SDK, please refer to our latest documentation: https://www.kucoin.com/docs/beginners/introduction Please try updating to the latest version of the SDK and modify your code to try again. If you encounter any issues, feel free to provide feedback.