header details needed?
-
What are the things to be filled please help!
payload = "{\n"clientcode":"S162966",\n"password":"**********"\n}"
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'X-UserType': 'USER',
'X-SourceID': 'WEB',
'X-ClientLocalIP': 'CLIENT_LOCAL_IP',
'X-ClientPublicIP': 'CLIENT_PUBLIC_IP',
'X-MACAddress': 'MAC_ADDRESS',
'X-PrivateKey': 'API_KEY'
} -
@sayed Please find the details as follow. https://smartapi.angelbroking.com/docs/ResponseStructure.
-
do i need to provide public ip & my local; ip address?
-
I dont have public ip, i am using mobile hotspot.. plz help
-
Just put client Id, password and API key.
Leave rest as it is, it will still work. -
@djdenish Okay now i am able to login & establish tokens response, but could not get logout or fetch profile.
error:
conn.request("POST","/rest/secure/angelbroking/user/v1/logout",payload,headers)
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11004] getaddrinfo failed -
@sayed
Upload screenshot of your full code and Output. -
@sayed Hi, please help me, I am also stuck on this, I am confused from where and how can I fill the required header details,
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'X-UserType': 'USER',
'X-SourceID': 'WEB',
'X-ClientLocalIP': 'CLIENT_LOCAL_IP',
'X-ClientPublicIP': 'CLIENT_PUBLIC_IP',
'X-MACAddress': 'MAC_ADDRESS',
'X-PrivateKey': 'API_KEY'
} -
Kindly refer to the header parameter to fill the respective keys
https://smartapi.angelbroking.com/docs/ResponseStructureThanks & Regards,
SmartAPI team