We placed Sell order through Publisher JS , and got the error CDSL PIN . But while placing Sell Order CDSL Pin is not asked by Publisher JS. Kindly suggest what to do?
Hi @rakeshr even while executing via Kite Publisher does it redirect the user to authorize to CDSL for a Sell order, if it is not done previously ? Bcoz right now it is just showing an error, unlike how it re-directs while using the Kite main browser interface.
Bcoz right now it is just showing an error, unlike how it re-directs while using the Kite main browser interface.
No, it won't re-direct by default to CDSL auth page. You need to add authHoldings function call, while initiating such requests. It will be something like: kite.authHoldings(holding auth request_id, callback()(optional));
You need API access to use holdings auth(as it requires a user's holding permission), which won't be available in Kite Publisher. So, either you can take an API subscription or manually go to kite web/app and authorize required holdings from UI.
It will be something like:
kite.authHoldings(holding auth request_id, callback()(optional));
Getting "message": "Insufficient permission for that call.", by using the https://api.kite.trade/portfolio/holdings/authorise API.Kindly guide us in getting permission
So, either you can take an API subscription or manually go to kite web/app and authorize required holdings from UI.
Already having the permissions for holdings.
Screenshot attached for reference. Pl Check