☰
Login
Signup
Home
›
Python client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.2K
All Categories
0
Incidents
128
Node JS client
38
Go client
769
.Net API client
363
Kite Publisher
532
.Net / VBA / Excel (3rd party)
435
Algorithms and Strategies
969
Java client
1K
API clients
401
PHP client
3.8K
Python client
331
Mobile and Desktop apps
1.3K
Market data (WebSockets)
3.2K
General
In this Discussion
December 2019
amkdev
volume = 0 for historical data pull on NIFTY 50
vipinn
December 2019
in
Python client
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
December 2019
Nifty Is An INDEX. I don't think it has volume. if you need volume use Nifty Futures.
Sign In
or
Register
to comment.