osparamatrix / ks-orderapi-python

47 stars 59 forks source link

Hey Why The Portfolio api is working fine on website's try this out but not on code #52

Closed kalilinux-png closed 3 years ago

WhiteBlackGray commented 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)

kalilinux-png commented 3 years ago

@WhiteBlackGray Brother from Deep of my Heart Thanks a lot