Hi,
I am not able to fetch BANKNIFTY data using HistoricalAPI.
try:
historicParam={
"exchange": "NSE",
"symboltoken": "26009",
"interval": "ONE_MINUTE",
"fromdate": "2022-02-30 09:15",
"todate": "2022-02-30 09:25"
}
print(obj.getCandleData(historicParam))
except Exception as e:
print("Historic Api failed: {}".format(e.message))
OUTPUT:
{'status': True, 'message': 'SUCCESS', 'errorcode': '', 'data': None}
I am not sure why the 'data' is None. Do let me know if there is anything wrong in the code?
Thanks in advance!!