If anyone like coding as a hobby or they like to explore more using code, python is the best example from my point of view.
I am going to demonstrate how can we extract simple stock market data using python. So, we are going to extract the NSE (National Stock Exchange of India Ltd). So this is just a sample code of how can you use it in your application or you can explore more from this blog.
pip install nsepy
Now I am going to extract the share of “ICICI Bank” data of 30 days ago of the current date.
After running the above code you will get the data in CSV format as shown below but the date and data will be variant.
You can explore more on this topic on: https://nsepy.xyz/
Any queries drop me a question on my LinkedIn Account page.
Shoeb Ahmed - Trainee Software Engineer - Aress Software | LinkedIn
Now for option and Bank Nifty
stock_opt = get_history(symbol="SBIN", start=date(2015,1,1), end=date(2015,1,10), option_type="CE", strike_price=300, expiry_date=date(2015,1,29)) nifty_next50 = get_history(symbol="NIFTY NEXT 50", start=date(2015,1,1), end=date(2015,1,10), index=True) Bank_Nifty = get_history(symbol="BANKNIFTY", start=date(2015,1,1), end=date(2015,1,10), index=True)