Yahoo Finance Nifty Historical Data Site
This method gives you – though note: volume for an index is usually the total traded volume of its constituents. Decoding the Columns: What You're Actually Getting When you download the data, you'll see six columns. Here's what they mean for Nifty:
import pandas as pd import numpy as np nifty = yf.download('^NSEI', period='1y') nifty['returns'] = nifty['Adj Close'].pct_change() nifty['volatility'] = nifty['returns'].rolling(30).std() * np.sqrt(252) yahoo finance nifty historical data
Download ^NSEI data from 1995 to today. Plot the log-scale chart. You'll see India's growth story in a single graph – and you didn't pay a rupee for it. Disclaimer: This article is for educational purposes. Always verify critical data from official sources before making investment decisions. This method gives you – though note: volume
print(nifty[['Adj Close', 'volatility']].tail()) Plot the log-scale chart
For decades, the Nifty 50 has been the heartbeat of the Indian equity market. Whether you're backtesting a trading strategy, calculating beta against the broader market, or simply tracking long-term wealth creation, reliable historical data is non-negotiable.