Closed kalilinux-png closed 3 years ago
You can try this code, it works for me check if this is working for you or not. import requests
headers = { 'accept': 'application/json', 'consumerKey': 'ConsumerKey', 'sessionToken': 'SessionToken', 'Authorization': 'Bearer AccessToken', }
response = requests.get('https://tradeapi.kotaksecurities.com/apim/portfolio/1.0/portfolio/holdings/2021-09-14', headers=headers)
@WhiteBlackGray Brother from Deep of my Heart Thanks a lot
You can try this code, it works for me check if this is working for you or not. import requests
headers = { 'accept': 'application/json', 'consumerKey': 'ConsumerKey', 'sessionToken': 'SessionToken', 'Authorization': 'Bearer AccessToken', }
response = requests.get('https://tradeapi.kotaksecurities.com/apim/portfolio/1.0/portfolio/holdings/2021-09-14', headers=headers)