CDSL Pin not asking while Sell Order

developer
developer edited October 2021 in Kite Publisher
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?
  • developer
    Its very urgent
  • rakeshr
    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.
    Didn't get you? Is sell order from Publisher Js re-directing to the CDSL PIN page or not?
  • developer
    Not Redirecting
  • vatsarj
    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.
  • rakeshr
    rakeshr edited October 2021
    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));
  • tns_ranjith
    Hi, can you pls sahre the sample API of how to use authHoldings like given for Publisher Trades
  • rakeshr
    Go through holding authorization API documentation here.
  • tns_ranjith
    Hi,
    Getting "message": "Insufficient permission for that call.", by using the https://api.kite.trade/portfolio/holdings/authorise API.Kindly guide us in getting permission
  • rakeshr
    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.
  • tns_ranjith


    Already having the permissions for holdings.
    Screenshot attached for reference. Pl Check
Sign In or Register to comment.