Authorise holdings for sale (dry run by default)
authorise_holdingsStart CDSL demat authorisation for selling shares, including after a SELL fails with HTTP 428. Preview requests by default, then send with a confirmation token to get the TPIN authorise URL.
Instructions
Start a CDSL authorisation so that shares can be sold from the demat account. Call this when a SELL fails
with HTTP 428 ('N quantity needs authorisation at depository'). DRY RUN BY DEFAULT: with dry_run=true (the
default) nothing is sent; the answer shows the request and the checks. Repeat the identical call with
dry_run=false and the confirmation_token to send it: Kite answers with a request_id, and this tool's live
answer then contains authorise_url, the link YOU open in a browser to key in your demat PIN (TPIN) at CDSL.
The PIN never passes through this server. Nothing is authorised until you finish that page.
With holdings (isin and quantity pairs) only those shares are authorised; without it the page offers the
entire holdings. An authorisation is valid for one trading session (until 5:30 PM IST, then it counts for the
next trading day) and is used up as you sell. This is not an order: no caps apply.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "authorise_holdings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | true (default): validate and preview only, nothing is sent. false: send it live, which needs live trading enabled on the server and the confirmation_token from a dry run | |
| holdings | No | the holdings (isin, quantity) to authorise; omit to authorise the entire holdings | |
| confirmation_token | No | the confirmation_token returned by a dry run of this exact call (single use) |