I have subscribed to kite historical data api, and using it to get 1day interval data is not matching with kite web platform. Let me know what you need me to let you know as parameters, and debug logs if any.
Hi is this close prices correct for following instruments | date | NIFTY 50 | ADANIPORTS | AUBANK | | 2023-05-30 00:00:00+05:30| 18633.85 | 734.05 | 776.15. |
as the portal is showing following attached chart for NIFTY 50
Similarly ADANIPORTS or AUBANK does not match, using above code as previously pointed.
print(f'instrument_token: {instrument_token}')
print(f'date_from {date_from}', f'date_to {date_to}')
data_array = kite.historical_data(instrument_token, date_from, date_to, "day", False, False)
df = pd.DataFrame(data_array)
print("\n" + df.tail(10).to_markdown())
'''
Output Below
Let me know if you need anything else. Tried with date_to with time 18:00:00 as well and same output as above.
''' ['NIFTY 50', 'ADANIPORTS', 'AUBANK'] '''
c
?
{'date': datetime.datetime(2023, 5, 19, 0, 0, tzinfo=tzoffset(None, 19800)),
'open': 18186.15, 'high': 18218.1, 'low': 18060.4, 'close': 18203.4, 'volume': 0, 'oi': 0}
And it's showing correct value.
| date | NIFTY 50 | ADANIPORTS | AUBANK |
| 2023-05-30 00:00:00+05:30| 18633.85 | 734.05 | 776.15. |
as the portal is showing following attached chart for NIFTY 50
Similarly ADANIPORTS or AUBANK does not match, using above code as previously pointed.