Hello Sujiit, I have Kite Connect app and also subscribed for historical data to access this API. But still I am getting an error as " TokenException: Invalid API credentials". and also the following are shown as errors.
Can anybody help me to solve the problem. I am using jupiter notebook and spyder to run this code. I have bought kiteconnect and historical api subscribed. But still I am getting this error.
I am surprised to know about pi and nest for monitoring. I am not aware of using pi or nest! I just tried backtesting in ipython notebook. Because, when I tried simple buy order it worked well. But streaming SMA is giving a problem as invalid API credentials.
I believe I am in the right direction to your question. If not please correct me.
@noor i guess the reason @sujith asked about PI is because the Token is invalidated when you login to PI. More information is needed here as to where are you storing you Token and how are you passing it to your code. Without which its really difficult to tell what the issue may be.
Can you let us know more details?
When you logged into App? Are you using Pi or NEST for monitoring?
What about other API calls, is it working?
Thanks for your response.
I am surprised to know about pi and nest for monitoring. I am not aware of using pi or nest! I just tried backtesting in ipython notebook. Because, when I tried simple buy order it worked well. But streaming SMA is giving a problem as invalid API credentials.
I believe I am in the right direction to your question.
If not please correct me.
More information is needed here as to where are you storing you Token and how are you passing it to your code.
Without which its really difficult to tell what the issue may be.
Thanks to both of you for giving me the solution.
Noor