Name Resolution Error While Fetching Intraday Candles

@DINESH_18996918 It seems your system or environment is unable to resolve the domain name api.upstox.com to an IP address. This is typically a network or DNS issue, not a problem with the API itself.

Please verify your internet connection, consider flushing your DNS cache, and temporarily disable any VPNs or proxies you may be using.

Thanks

Okay, and there is delay of about 60-120 Seconds, while fetching Intraday Candle,

I tried fetching 1 Minut and 15 Minutes Intraday Candles, the latest Data recieved was 60-120 Seconds behind the actual data..

I am Using this code:

import requests

url = ‘https://api.upstox.com/v3/historical-candle/intraday/NSE_EQ|INE848E01016/minutes/1
headers = {
‘Accept’: ‘application/json’
}

response = requests.get(url, headers=headers)

Check the response status

if response.status_code == 200:
# Do something with the response data (e.g., print it)
print(response.json())
else:
# Print an error message if the request was not successful
print(f"Error: {response.status_code} - {response.text}")