after creating the object successfully. the API working perfectly for position book calls but when calling order_history, it's showing below error, and again it's working fine for other API calls perfectly except order_history.
File "kiteconnect\connect.py", line 416, in order_history File "kiteconnect\connect.py", line 826, in _get File "kiteconnect\connect.py", line 898, in _request kiteconnect.exceptions.InputException: Invalid `api_key` or `access_token`.
I'm facing Same issue,
and using set_access_token()
- Is their any alternative
- how to handle this error
Check if your api_key/access token is having null value.