It looks like you're new here. If you want to get involved, click one of these buttons!
baseurl = 'https://api.kite.trade'
auth = 'token '+api_key+':'+acs_tok
headers = {'X-Kite-Version':'3','Authorization': auth}
fnm = '/portfolio/holdings/authorise'
fnm2 = '/portfolio/positions'
fum_url = baseurl+fnm
fum_url2 = baseurl+fnm2
fum_req = requests.post(fum_url, headers=headers)
print(fum_req.json())
fum_req2 = requests.get(fum_url2, headers=headers)
print(fum_req2.json())
You need to go to the Kite web or app and pre-authorize the holdings. A Kite Connect app doesn't have the permission to authorize holdings on CDSL.