Hi @admin ,
I am not able to get response of get holding api. I am using python SDK. My account id is 'V44628'
--- Sample code ---
from smartapi.smartConnect import SmartConnect #
obj=SmartConnect(api_key='xxxxxxx', debug=True)
data = obj.generateSession("xxxxxxx","xxxxxxx")
refreshToken = data['data']['refreshToken']
Get Holdings
hold = obj.holding()
print ("\nHoldings --> ", hold)
---- Response ----
DEBUG:smartapi.smartConnect:Request: GET https://apiconnect.angelbroking.com/rest/secure/angelbroking/portfolio/v1/getHolding {} {'Content-type': 'application/json', 'X-ClientLocalIP': '127.0.0.1', 'X-ClientPublicIP': 'xx.xx.xx.xx', 'X-MACAddress': 'xx:xx:xx:xx:xx:xx', 'Accept': 'application/json', 'X-PrivateKey': 'xxxxxxx', 'X-UserType': 'USER', 'X-SourceID': 'WEB', 'Authorization': 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VybmFtZSI6IlY0NDYyOCIsInJvbGVzIjowLCJ1c2VydHlwZSI6IlVTRVIiLCJpYXQiOjE2MTY0OTYwMzYsImV4cCI6MTcwMjg5NjAzNn0.mMn0QTBLDFJ0Lj2zULOPKUSeWWdZIkTFzGUCTXvwHykwsuazRPc4Iatrf20TXoDwNLWmH6XERVdMB95pvTBUdw'}
DEBUG:urllib3.connectionpool:https://apiconnect.angelbroking.com:443 "GET /rest/secure/angelbroking/portfolio/v1/getHolding?%7B%7D HTTP/1.1" 200 112
DEBUG:smartapi.smartConnect:Response: 200 b'{"status":false,"message":"Get T1 Hodling Response : Bad Input...Error Code:0","errorcode":"AB1007","data":null}'
Holdings --> {'status': False, 'message': 'Get T1 Hodling Response : Bad Input...Error Code:0', 'errorcode': 'AB1007', 'data': None}