Primary code seems to be okey, however you also need to use below code to fetch chart data
chart_5 = tsl.get_historical_data(tradingsymbol = script_name, exchange = 'NSE',timeframe="5")
Also do post your question on below thread
Primary code seems to be okey, however you also need to use below code to fetch chart data
chart_5 = tsl.get_historical_data(tradingsymbol = script_name, exchange = 'NSE',timeframe="5")
Also do post your question on below thread