We checked for this. Historical Data is working fine for BANKNIFTY20O0821900PE (9540354). It's returning blank array for period from=2020-10-03&to=2020-10-03&interval=day, as above mentioned day was trading holiday. If you change the from_date to older, you can see older candles. Example response:
You will have to run pykiteconnect in debug mode.
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:443
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.kite.trade:443
Look like options historic data not working for today
BANKNIFTY20O0821900PE (9540354)
.It's returning blank array for period
from=2020-10-03&to=2020-10-03&interval=day
, as above mentioned day was trading holiday.If you change the
from_date
to older, you can see older candles.Example response:
Do i need to code for week ends and trading holidays in my code. Is API won't give yesterday means last trading day data ?
Note: Last Monday it executed successfully even with weekend holiday .