Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Kite v5 - TypeScript

## [5.2.1] - 2026-04-14

### Bug Fixes

- **Type Definitions**: Added missing `market_protection` parameter to `placeOrder` and `modifyOrder` method signatures in `types/connect.d.ts` to keep them in sync with `interfaces/connect.ts` (added in 5.2.0)
- **Type Definitions**: Added missing `root` parameter to `KiteTickerParams` in `types/ticker.d.ts` to match the internal `interfaces/ticker.ts` definition and the runtime implementation

## [5.2.0] - 2026-03-27

### New Features
Expand Down Expand Up @@ -72,6 +79,7 @@ If you are upgrading from a previous version, please review the following change

- This release marks a significant update with the transition to TypeScript. Please report any issues or bugs to the repository's issue tracker.

[5.2.1]: https://github.com/zerodha/kiteconnectjs/releases/tag/v5.2.1
[5.2.0]: https://github.com/zerodha/kiteconnectjs/releases/tag/v5.2.0
[5.1.0]: https://github.com/zerodha/kiteconnectjs/releases/tag/v5.1.0
[5.0.0]: https://github.com/zerodha/kiteconnectjs/releases/tag/v5.0.0
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kiteconnect",
"version": "5.2.0",
"version": "5.2.1",
"description": "The official typescript client for the Kite Connect trading APIs",
"main": "./dist/lib/index.js",
"types": "./types/index.d.ts",
Expand Down
8 changes: 8 additions & 0 deletions types/connect.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2007,6 +2007,10 @@ export type Connect = {
* Parent order id incase of multilegged orders.
*/
parent_order_id?: string;
/**
* Market protection percentage. Set to -1 for system-default, or a percentage value > 0 up to 100.
*/
market_protection?: number;
}
) => Promise<{ order_id: string }>;

Expand Down Expand Up @@ -2190,6 +2194,10 @@ export type Connect = {
* An optional tag to apply to an order to identify it (alphanumeric, max 20 chars)
*/
tag?: string;
/**
* Market protection percentage. Set to -1 for system-default, or a percentage value > 0 up to 100.
*/
market_protection?: number;
}
) => Promise<{ order_id: string }>;

Expand Down
4 changes: 4 additions & 0 deletions types/ticker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ export type KiteTickerParams = {
* in seconds is the maximum delay after which subsequent re-connection interval will become constant. Defaults to 60s and minimum acceptable value is 5s.
*/
max_delay?: number;
/**
* WebSocket root endpoint. Defaults to 'wss://ws.kite.trade/'.
*/
root?: string;
};

export type Ticker = {
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,11 @@ fs.realpath@^1.0.0:
resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==

fsevents@~2.3.2:
version "2.3.2"
resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz"
integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==

function-bind@^1.1.2:
version "1.1.2"
resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz"
Expand Down