☰
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.8K
All Categories
0
Incidents
153
Node JS client
40
Go client
793
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
993
Java client
1.1K
API clients
404
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
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.