getCandleData returns none


  • following code returns none for equity token

    try:
    	historicParam={
    	"exchange": "NSE",
    	"symboltoken": "3045",
    	"interval": "ONE_MINUTE",
    	"fromdate": "2023-01-11 09:15", 
    	"todate": "2023-01-12 11:30"
    	}
    	smartAPI.getCandleData(historicParam)
    except Exception as e:
    	print("Historic Api failed: {}".format(e.message))