getting "{'message': 'Internal Error', 'errorcode': 'AB2001', 'status': False, 'data': None}" error
-
getting the error msg posted above with historical data with getCandleData
def getHistoricalData(token=15110, interval='ONE_MINUTE'): ltp = obj.ltpData('NSE', 'TATAMOTORS-EQ', 3456) print(ltp) todate = datetime.now() fromDate = todate - timedelta(days=1) fromDateFrmt = fromDate.strftime('%Y-%m-%d 09:20') todateDateFrmt = fromDate.strftime('%Y-%m-%d %H:%M') print(fromDateFrmt, todateDateFrmt) # print(userProfile) try: histParams = { 'exchange': 'NSE', 'symboltoken': "3456", 'interval': interval, 'fromdate': fromDateFrmt, 'toDate': todateDateFrmt } histCandleJson = obj.getCandleData(histParams) print(histCandleJson) except Exception as ex: print(ex) getHistoricalData()
output
{'status': True, 'message': 'SUCCESS', 'errorcode': '', 'data': {'exchange': 'NSE', 'tradingsymbol': 'TATAMOTORS-EQ', 'symboltoken': '3456', 'open': 466.55, 'high': 478.0, 'low': 462.25, 'close': 461.45, 'ltp': 467.1}} 2021-11-29 09:20 2021-11-29 12:24 {'message': 'Internal Error', 'errorcode': 'AB2001', 'status': False, 'data': None}
-
any idea what I am doing wrong ?
1 out of 2