Response: {'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''}


  • Client Id : R946011
    Getting the following error on connection :
    Response: {'success': False, 'message': 'Invalid Token', 'errorCode': 'AG8001', 'data': ''}

    I am running the below code:
    params = {
    "exchange": "NSE",
    "symboltoken": "99926000",
    "interval": "ONE_HOUR",
    "fromdate": "2023-09-06 11:15",
    "todate": "2023-09-06 12:00"
    }

    hist_data = obj.getCandleData(params);


  • Hi @coder ,

    Please login again and then try.

    Thank you.

    Regards
    SmartAPI Team