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)
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());
version 3 |
lastTradedTime |
openInterest |
oiDayHigh |
oiDayLow |
tickTimestamp |
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 |
version 2 |
version 3 |
lastTime(String) |
lastTradedTime(Date) |
changePercent |
NA |
depth(Map<String, ArrayList>) |
depth(MarketDepth type) |
version 2 |
version 3 |
IndicesQuote |
NA |
Profile
- Added new profile API call to fetch user details.