I am using Python client kiteconnect-3.7.7 for trading. I am able to connect fine using api_key and access_token and all the functions are running smoothly except cancel_order and exit_order. Whenever I run these functions using an 'BO' order id, system throws an error 'InputException: Invalid `api_key` or `access_token`.' Could you please let me know what could be the issue. Query: kite.exit_order('BO',order_id=190744870047011)
Error: InputException: Invalid `api_key` or `access_token`.
You need to use 'bo' instead of 'BO' as variety.eg.
kite.exit_order('bo',order_id=190744870047011)
Go through documentation here.