kiteconnect-ts is an unofficial, community-maintained library that mirrors the official Zerodha kiteconnectjs API one-to-one. Every class, method, and constant is identical, so you can switch packages and your existing code will continue to work as-is. The only thing you gain immediately is TypeScript types.Documentation 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.
kiteconnect-ts is not the official Zerodha library. It is an independent TypeScript port maintained by the community. The official package is kiteconnectjs.
Migration steps
Update your import
Change the package name in your import statement. Nothing else in the import needs to change — named exports like If you are already using ES module imports:
KiteConnect and KiteTicker are identical.Class member constants still work
If your kiteconnectjs code used instance constants likekc.EXCHANGE_NSE or kc.PRODUCT_MIS, they continue to work without any changes. They are preserved on the KiteConnect instance as readonly properties.
Gradually adopting TypeScript types
Once you have migrated, you can start adding types incrementally. kiteconnect-ts exports interfaces and const objects for every parameter and response shape.Notable changes in kiteconnect-ts
The following changes were introduced across kiteconnect-ts versions. They are all additive and do not break kiteconnectjs compatibility.| Version | Change |
|---|---|
| 1.1.1 | Date object returned in socket order payload instead of a string |
| 1.1.0 | getQuote, getLTP, getOHLC now accept a single instrument string in addition to an array |
| 1.1.0 | crypto-js dependency removed; Node.js built-in crypto module is used instead |
| 1.0.0 | KiteTicker event callbacks are fully typed |
| 0.5.0 | Exported const objects (Exchange, ProductType, etc.) added |
| 0.4.3 | modeFull, modeQuote, modeLTP on KiteTicker made non-static for kiteconnectjs compatibility |
| 0.3.0 | Full rewrite to match kiteconnectjs APIs for easy migration |