WebSocket object at 0x02B95770>>: Route not found

Srik
Hi Sujith,

I keep getting this error from the websocket. Can you point me to what could be the reason for this.

Regards,
Srik
  • Srik
    Hi Sujith,

    I find that the issue is with order_cancel call. Can you give me an example how I can cancel a "regular" order.
  • vishnus
    vishnus edited August 2017
    Hi @Srik

    Can you share the code for websocket issue?

    To cancel regular order using python client, you can just do this:
    kite.order_cancel(order_id)

    Please refer this documentation about order cancelling:
    https://kite.trade/docs/connect/v1/#cancelling-orders

  • Srik
    Hi Vishnus,

    I call the order_cancel API from the on_tick function. This call was wrong and was throwing error. Now it is fixed.

    Thanks,
    Srik
This discussion has been closed.