volume = 0 for historical data pull on NIFTY 50

vipinn
I am trying to get NIFTY 50 data from 2015-01-01 to 2019-12-26. I get the OHLC data, but volume is always 0. Please let me know how i can get the volume data correctly.


symbol_Token=256265
from_date="2019-12-01"
to_date="2019-12-26"
interval="day"

historical_Data = kite.historical_data(symbol_Token,from_date,to_date,interval)

print(historical_Data[0])

######Result#####

{'date': datetime.datetime(2019, 12, 2, 0, 0, tzinfo=tzoffset(None, 19800)), 'open': 12137.05, 'high': 12137.15, 'low': 12023.7, 'close': 12048.2, 'volume': 0}
  • amkdev
    Nifty Is An INDEX. I don't think it has volume. if you need volume use Nifty Futures.
Sign In or Register to comment.