You need historical api data for calculating the SMA at the start of day. Or you can save the candle data in a file and use it for calculating SMA, and keep repeating saving the candle data.
Continuous data is available only for the futures contract, not for option contracts.
Question: Anyway I can access data for the options contract that has expired?
Answer: No, not using Kite connect APIs. But, you may consider getting it from any o…
Invalid token error is coming because of historical_data function parameter incorrect input ("SNOWMAN"). Instead, its token id should be passed to the function, which is in the current case is 1239809. You can find the list of instruments token id u…
Kindly check your data again. The data that you have pooled are from BSE, while the chart data that you are referring to is from NSE. All the data that are being provided to its customers are accurate. Attaching images of NTPC of NSE as well as BSE.…
Thanks a lot, @rakeshr . I have gone through the post regarding offloading. I think the celery or rq method might delay the code functioning. So, I will go with your second option and try to implement it. I will let you know in case of any issue. Be…
Alright, so I will remove the "threaded=True" and sleep time. But I have a few more questions:
1. I have used save_data(ticks) in my on_ticks function. So, it means that I have already offloaded my calculations to a secondary thread.. right?
2. Is t…
@sujith Thanks for pointing this out. I think I missed to read this specific rule before posting the question.
Before closing this thread, just want to share some observations regarding the question I asked.
Regarding the third point, "Get the ind…
Can you be more elaborative on your question cause I am unable to understand the problem?
Correct me if I am wrong:
You have one file in which you have saved the stock price of INFY for the last 5 days. Now you want to calculate the difference in t…