Releases: zerodha/javakiteconnect
Releases · zerodha/javakiteconnect
Kite Connect 3.0.1
Breaking changes from 3.0.0 to 3.0.1
-
setProxy method is removed and now the Kite Connect constructor accepts proxy as a param with api_key.
-
Added support to listen to websocket error messages from the API.
Kite Connect 3.0.0
Breaking changes from version 2 to version 3
Place order (bracket order) parameters
version 2 | version 3 |
---|---|
squareoff_value | squareoff |
stoploss_value | stoploss |
Model name changes
version 2 | version 3 |
---|---|
MfHolding | MFHolding |
MfInstrument | MFInstrument |
MfOrder | MFOrder |
MfSip | MFSIP |
Order (model)
- The orderTimestamp is now Date type.
- The exchangeTimestamp is now Date type.
Trades (model)
- The orderTimestamp is now fillTimestamp.
- The exchangeTimestamp is now Date type.
MFOrder (model)
- The orderTimestamp is now Date type.
- The exchangeTimestamp is now Date type.
MFSIP (model)
- The created is now Date type.
- The Date is now Date type.
MFInstrument (model)
- The purchase_allowed is now boolean type.
- The redemption_allowed is now boolean type.
- The last_price_date is now Date type.
Instrument (model)
- The expiry is now Date type.
Package name changes
version 2 | version 3 |
---|---|
com.rainmatter.kitehttp | com.zerodhatech.kiteconnect.kitehttp |
com.rainmatter.utils | com.zerodhatech.kiteconnect.utils |
com.rainmatter.kiteconnect | com.zerodhatech.kiteconnect |
com.rainmatter.ticker | com.zerodhatech.kiteconnect |
com.rainmatter.models | com.zerodhatech.models |
Method name changes
version 2 | version 3 |
---|---|
requestAccessToken | generateSession |
modifyProduct | convertPosition |
getOrder | getOrderHistory |
getTrades(order_id) | getOrderTrades(order_id) |
getMfOrders | getMFOrders |
getMfOrder | getMFOrder |
getMfSips | getMFSIPs |
getMfSip | getMFSIP |
modifySip | modifySIP |
cancelSip | cancelSIP |
getMfInstruments | getMFInstruments |
Method with signature change
version 2 |
---|
placeOrder |
modifyOrder |
cancelOrder |
convertPosition |
getTriggerRange |
getHistoricalData |
placeMFOrder |
placeMFSIP |
modifyMFSIP |
For more details about each method go to KiteConnect.java
Funds (model)
version 2 | version 3 |
---|---|
Margins | Margin |
User (model)
- UserModel is now User.
version 2 | version 3 |
---|---|
product | products |
exchange | exchanges |
orderType | orderTypes |
passwordReset | NA |
memberId | NA |
NA | apiKey |
- loginTime is now of Date type.
Position (model)
Added new fields
version 3 |
---|
dayBuyQuantity |
daySellQuantity |
dayBuyPrice |
daySellPrice |
dayBuyValue |
daySellValue |
value |
Kite Ticker (Websockets)
- Kite Ticker is now authenticated using access_token and not public_token.
Version 2:
Kiteconnect kiteSdk = new Kiteconnect("your_apiKey");
Version 3:
KiteTicker tickerProvider = new KiteTicker(kiteConnect.getUserId(), kiteConnect.getAccessToken(), kiteConnect.getApiKey());
-
Order postbacks are now streamed on Kite Ticker.
-
Added new fields in full mode.
version 3 |
---|
lastTradedTime |
openInterest |
oiDayHigh |
oiDayLow |
tickTimestamp |
- Changes:
version 2 | version 3 |
---|---|
OnTick | OnTicks |
setTimeIntervalForReconnection | NA |
NA | setMaximumRetryInterval |
netPriceChangeFromClosingPrice | change |
Quote
- Quote will accept multiple params and returns a map of Quote model.
- Added new fields open interest, tick timestamp, last traded time, average price, day high OI, day low OI.
- lastTradedPrice is now lastPrice.
version 3 |
---|
instrumentToken |
timestamp |
averagePrice |
oiDayHigh |
oiDayLow |
- Changes:
version 2 | version 3 |
---|---|
lastTime(String) | lastTradedTime(Date) |
changePercent | NA |
depth(Map<String, ArrayList>) | depth(MarketDepth type) |
- Removed:
version 2 | version 3 |
---|---|
IndicesQuote | NA |
Profile
- Added new profile API call to fetch user details.
Added new OHLC and LTP API calls to fetch data for multiple instruments at once.
New features:-
- Added OHLC fetch API for multiple(up to 200) instruments at once.
- Added LTP fetch API for multiple(up to 200) instruments at once.
Breaking changes:-
- Get Holdings API will return a list of holdings instead of holdings object.
- Get Positions will return a map with day and net positions.
- Get Orderbook will return a list of orders instead of single order object.
- Get trades will return a list of trades instead of a single trades object.
- Get trades for an order will return a list of trades instead of a single object.
- Get Mutual Funds orders will return a list of orders.
- Get Mutual Funds SIPs will return a list of SIPs.
Updated examples are here https://github.com/rainmattertech/javakiteconnect/blob/master/sample/src/Examples.java
Included Mutualfunds API
Change log:
Retrieving and placing Mutualfunds orders.
Retrieving, placing and modifying Mutualfunds SIP.
Retrieving Mutualfunds holdings.
added reconnection to ticker
- Added reconnection mechanism to ticker.
- Created new POJO for Indices quotes.
added changes to parse NSE indices in modeLTP
v1.4.2 updated readme to denote new version of maven
Added special orders exit and get quotes for indices
v1.4.1 updated examples and readme
Bug fixes
v1.4 changes to fix routes for get order details.
Added get order details for a given order id.
v1.3 changed jar file name
Add order tag and request proxy feature and fix for parent order id
v1.2 changes to readme