Historical data not displying

Fetching data for instrument_key: NSE_INDEX|Nifty 50
Start Date: 2024-08-22, End Date: 2024-08-22
URL: https://api.upstox.com/v2/historical-candle/NSE_INDEX|Nifty 50/day/2024-08-22/2024-08-22
Response Status Code: 200

Response JSON: {‘status’: ‘success’, ‘data’: {‘candles’: }}

why the response is getting empty ?

@algotest_algotest

Please use this url to achieve the correct results

https://api.upstox.com/v2/historical-candle/NSE_INDEX%7CNifty%2050/day/2024-08-22/2024-08-22

For more information please refer to API Documentation | Historical Candle and Example codes

Thank you

I have another problem with historical data API. It is not returning current day data. we need to call multiple API to get all candles. We need option to get candle data including current day. Is there any way that we can get both historical and intraday data in single API call?