I have followed the required steps of placing an order, but getting an error while trying to place the order "Invalid `api_key` or `access_token`". A quick help from expert developers here would be highly appreciated.
data = kite.generate_session(REQUEST_TOKEN, api_secret=API_SECRET) kite.set_access_token(data["access_token"])
Please read the documentation properly:
https://kite.trade/docs/connect/v3/orders/#glossary-of-constants