I am trying to get the orders and trade details but getting following error, Can someone help me for this.
Exception has occurred: gaierror
[Errno 11001] getaddrinfo failed
conn = http.client.HTTPSConnection(
"apiconnect.angelbroking.com "
)
headers = {
'Authorization': 'Bearer Autorization token',
'Content-Type': 'application/json',
'Accept': 'application/json',
'X-UserType': 'USER',
'X-SourceID': 'WEB',
'X-ClientLocalIP': CLIENT_LOCAL_IP,
'X-ClientPublicIP': external_ip,
'X-MACAddress': mac_Address,
'X-PrivateKey': api_key
}