TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/anurag-roy/kiteconnect-ts/llms.txt
Use this file to discover all available pages before exploring further.
KiteTickerParams interface defines the configuration object you pass to the KiteTicker constructor. Both api_key and access_token are required. Auto-reconnect is enabled by default with sensible limits that you can tune through max_retry and max_delay.
Parameters
The API key issued to you by Zerodha. This is the same key you use with
KiteConnect and it is sent as part of the WebSocket handshake URL.The access token obtained after a successful login flow. Unlike
KiteConnectParams, this field is required on the ticker — there is no way to set it later via a method call.Enable or disable automatic reconnection when the WebSocket connection drops. When
true, the ticker uses an exponential backoff algorithm to schedule reconnection attempts.Default: trueThe maximum number of reconnection attempts before the ticker gives up and fires the
noreconnect event. The absolute ceiling is 300; values above 300 are clamped to 300.Default: 50 | Maximum: 300The maximum back-off delay in seconds. After the exponential interval reaches this value, subsequent attempts wait a constant
max_delay seconds. Values below 5 are clamped to 5.Default: 60 | Minimum: 5The WebSocket server URL. Override this only when connecting to a custom or staging endpoint.Default:
"wss://ws.kite.trade/"Full example
The
reconnect event fires on every individual attempt, passing the current retry count and the next interval (in seconds) as arguments. Use this to log reconnection progress without blocking the attempt.