Is this correct url or not if not then please correct it

url = f’https://api.upstox.com/historical-candle/NSE_EQ/{instrument_key}/{interval}/{start_date}/{end_date}

Please refer to the sample code provided here: