diff --git a/CHANGELOG.md b/CHANGELOG.md index f4e597f..2d47cf0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/package-lock.json b/package-lock.json index d2d0c1e..720c7f8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "kiteconnect", - "version": "5.2.0", + "version": "5.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "kiteconnect", - "version": "5.2.0", + "version": "5.2.1", "license": "MIT", "dependencies": { "@microsoft/tsdoc": "^0.15.0", diff --git a/package.json b/package.json index b774dde..efd9397 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/types/connect.d.ts b/types/connect.d.ts index 9fe5049..85da3f6 100644 --- a/types/connect.d.ts +++ b/types/connect.d.ts @@ -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 }>; @@ -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 }>; diff --git a/types/ticker.d.ts b/types/ticker.d.ts index 27c3d13..221c468 100644 --- a/types/ticker.d.ts +++ b/types/ticker.d.ts @@ -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 = { diff --git a/yarn.lock b/yarn.lock index 78ce563..1b902f9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"