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 the stock price of today's stock price and 5 days back stock price? Based on my understanding, what you want is to do this whole process automatically without downloading the data manually from a third party. Right? If that is the case, you can activate add on kite. trade for the historical data. After subscribing to it, you can download the historical prices of any stock.?
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 the stock price of today's stock price and 5 days back stock price?
Based on my understanding, what you want is to do this whole process automatically without downloading the data manually from a third party. Right?
If that is the case, you can activate add on kite. trade for the historical data. After subscribing to it, you can download the historical prices of any stock.?
Your understanding is complete and accurate.
As suggested by you I will try implementing the solution and let you know.