Skip to content

Releases: zerodha/kiteconnectjs

v5.0.1

23 Aug 10:46
Compare
Choose a tag to compare

What's Changed

  • feat: add disconnect ticker method with no re-connection mechanism by @ranjanrak in #102

Full Changelog: v5.0.0...v5.0.1

v5.0.0

13 Jun 10:15
3a57004
Compare
Choose a tag to compare

What's Changed

  • feat: refactor codebase to TypeScript and add TSDoc documentation by @ranjanrak in #101

Breaking Changes

  • TypeScript Conversion: The entire codebase has been converted to TypeScript. This means type definitions are now included, and any custom integrations may need to be updated to match the new type definitions.
  • Node.js Version Requirement: The minimum required Node.js version is now 18.0.0. Please upgrade your Node.js installation if you are using an older version.
  • API Changes: Updated various function signatures and added explicit types for better TypeScript support.

Full Changelog: https://github.com/zerodha/kiteconnectjs/blob/master/CHANGELOG.md#kite-v5---typescript

v4.1.0

09 Jan 08:11
Compare
Choose a tag to compare

Features

What's Changed

  • replace ; with , and removing unused variable by @bhavyasf in #73
  • feat: add all mode ticker unitTests by @ranjanrak in #74
  • fix(examples/connect): declare kc (kiteconnect client) with let and shorten expression in ticker.js by @bhavyasf in #75
  • feat: expose onmessage event callback by @ranjanrak in #79
  • remove unused function by @bhavyasf in #81
  • fix: add missing parameter documentation by @marsonya in #83
  • chore: update kiteconnect login URL by @ranjanrak in #82
  • chore: remove stale docs artifacts by @rhnvrm in #86
  • feat: add doc generation steps in readme by @ranjanrak in #87
  • feat: add getAuctionInstruments, variety in place order, auction tests and update submodule by @ranjanrak in #90
  • feat: add unit tests for order charges by @ranjanrak in #91

New Contributors

Full Changelog: v4.0.1...v4.1.0

v4.0.1

06 Jun 06:42
Compare
Choose a tag to compare
  • Added tests
  • Added iceberg and TTL order params to docs

v4.0.0

05 Oct 11:28
Compare
Choose a tag to compare

Breaking changes

v4 is a breaking major release with multiple changes

  • Upgrade deps and set minimum nodejs version to 8.0.0+
  • Return promise instead of throwing error on generateSession and renewAccessToken
  • Handle gtt payload validation and throw proper error
  • Change ticker response attributes naming as per kite connect doc

What's Changed

New Contributors

Full Changelog: v3.1.0...v4.0.0

Bugfixes

02 Mar 11:01
Compare
Choose a tag to compare
v3.1.0

chore: upgrade version to v3.1.0

Bug fixes

21 Dec 07:42
Compare
Choose a tag to compare
  • fix: historical excluding last candle
  • fix: exitOrder missing return statement

Kite connect 3.0.0

20 May 10:08
78162cb
Compare
Choose a tag to compare

Kite connect 3.0.0 beta 2

18 Jan 11:44
Compare
Choose a tag to compare
Pre-release

Documentation

Installation

npm install kiteconnect@beta

New features

  • method: getProfile
  • method: getOHLC
  • method: getLTP
  • method: getInstrumentsMargins
  • Added MF API calls
  • method: getMFOrders
  • method: getMFHoldings
  • method: placeMFOrder
  • method: cancelMFOrder
  • method: getMFSIPS
  • method: placeMFSIP
  • method: modifyMFSIP
  • method: cancelMFSIP
  • method: getMFInstruments
  • method: exitOrder
  • method: renewAccessToken
  • method: invalidateRefreshToken
  • constants for products, order type, transaction type, variety, validity, exchanges and margin segments

API method name changes

v2 v3
requestAccessToken generateSession
invalidateToken invalidateAccessToken
setSessionHook setSessionExpiryHook
loginUrl getLoginURL
margins getMargins
orderPlace placeOrder
orderModify modifyOrder
orderCancel cancelOrder
orders getOrders
orders(order_id) getOrderHistory
trades getTrades
trades(order_id) getOrderTrades
holdings getHoldings
positions getPositions
productModify convertPosition
instruments getInstruments
historical getHistoricalData
triggerRange getTriggerRange

Params and other changes

  • KiteConnect takes all the params as object including api_key
  • convertPosition method takes all the params as object
  • All success response returns only data field in response instead with envelope
  • All error thrown are in the format of {"message": "Unknown error", "error_type": "GeneralException", "data": null}
  • Changes in generateSession response structure
  • Changes in getPositions response structure
  • Changes in getQuote response structure
  • Changes in placeOrder params
  • Changes in getHistoricalData params
  • All datetime string fields has been converted to Date object.
    • getOrders, getOrderHistory, getTrades, getOrderTrades, getMFOrders responses fields order_timestamp, exchange_timestamp, fill_timestamp
    • getMFSIPS fields created, last_instalment
    • generateSession field login_time
    • getQuote fields timestamp, last_trade_time
    • getInstruments field expiry
    • getMFInstruments field last_price_date

KiteTicker changes

  • KiteTicker receives param access_token instead of public_token
  • New params addedd to KiteTicker initializer
    • reconnect - Toggle auto reconnect on/off
    • max_retry - Max retry count for auto reconnect
    • max_delay - Max delay between subsequent retries
    • Auto reconnect is enabled by default
  • Renamed callback reconnecting to reconnect
  • Added new callbacks
    • error - when socket connection is closed with error. Error is received as a first param
    • close - when socket connection is closed cleanly
    • order_update - When order update (postback) is received for the connected user (Data object is received as first argument)

Bug fixes and added postback checksum validation method

12 Mar 16:30
Compare
Choose a tag to compare

Added postback checksum validation method and fixed bug in response transform method when historical api fails.

Fixed #9
Fixed #4