@admin Do we get historical data for BANKNIFTY and NIFTY or is there a plan to roll out that in future updates? I have tried using the tokens 26009 and 26000, but an empty array is returned.
J
Posts made by jupyter
-
Historical Data for BANKNIFTY & NIFTY
-
Not able to fetch BANKNIFTY data using HistoricalAPI
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!!
-
RE: Invalid TOTP
@ganeshpanpat I am still not sure where I am going wrong. I have updated the library with the latest version to 1.30. I am passing the TOTP parameter correctly. Can you suggest what can I be doing wrong?
-
RE: Invalid TOTP
@admin Still facing the same error. "TypeError: SmartConnect.generateSession() takes 3 positional arguments but 4 were given"