'AttributeError' object has no attribute 'message'
-
The above said error while fetching for candle data with below code. Pl check and do the needful. </br>
def getCandleData(token,obj): </br>
try:</br> historicParam={</br> "exchange": "NSE",</br> "symboltoken": token,</br> "interval": "ONE_DAY",</br> "fromdate": f'{date.today()-timedelta(days=10)} 09:15' , </br> "todate": f'{date.today()} 15:30' </br> }</br> return obj.getCandleData(historicParam)</br> except Exception as e:</br> print(f"Historic Api failed: {e.message}")</br>
-
@admin Can u pl check?