Package | Description |
---|---|
com.zerodhatech.kiteconnect |
Offers all functionality that Kite Connect can provide for building a platform.
|
com.zerodhatech.kiteconnect.kitehttp |
Wrapper classes for making API call to server and callback for session expiry event.
|
com.zerodhatech.kiteconnect.kitehttp.exceptions |
Different exceptions that kite connect deals with.
|
com.zerodhatech.ticker |
Websocket connection related components for getting live quotes.
|
Modifier and Type | Method and Description |
---|---|
GTT |
KiteConnect.cancelGTT(int gttId)
Cancel GTT.
|
boolean |
KiteConnect.cancelMFOrder(String orderId)
If cancel is successful then api will respond as 200 and send back true else it will be sent back to user as KiteException.
|
boolean |
KiteConnect.cancelMFSIP(String sipId)
Cancel a mutualfunds sip.
|
Order |
KiteConnect.cancelOrder(String orderId,
String variety)
Cancels an order.
|
Order |
KiteConnect.cancelOrder(String orderId,
String parentOrderId,
String variety)
Cancel/exit special orders like BO, CO
|
org.json.JSONObject |
KiteConnect.convertPosition(String tradingSymbol,
String exchange,
String transactionType,
String positionType,
String oldProduct,
String newProduct,
int quantity)
Modifies an open position's product type.
|
User |
KiteConnect.generateSession(String requestToken,
String apiSecret)
Do the token exchange with the `request_token` obtained after the login flow,
and retrieve the `access_token` required for all subsequent requests.
|
CombinedMarginData |
KiteConnect.getCombinedMarginCalculation(List<MarginCalculationParams> params,
boolean considerPositions,
boolean compactMode)
Get margins required data for multiple instruments before placing an order,
this can be used to check the margin required for taking hedged positions.
|
GTT |
KiteConnect.getGTT(int gttId)
Fetch details of a GTT.
|
List<GTT> |
KiteConnect.getGTTs()
Fetches list of gtt existing in an account.
|
HistoricalData |
KiteConnect.getHistoricalData(Date from,
Date to,
String token,
String interval,
boolean continuous,
boolean oi)
Retrieves historical data for an instrument.
|
List<Holding> |
KiteConnect.getHoldings()
Retrieves the list of holdings.
|
List<Instrument> |
KiteConnect.getInstruments()
Retrieves list of market instruments available to trade.
|
List<Instrument> |
KiteConnect.getInstruments(String exchange)
Retrieves list of market instruments available to trade for an exchange
Response is array for objects.
|
Map<String,LTPQuote> |
KiteConnect.getLTP(String[] instruments)
Retrieves last price.
|
List<MarginCalculationData> |
KiteConnect.getMarginCalculation(List<MarginCalculationParams> params)
Get margins required data before placing an order.
|
Map<String,Margin> |
KiteConnect.getMargins()
Gets account balance and cash margin details for a equity and commodity.
|
Margin |
KiteConnect.getMargins(String segment)
Gets account balance and cash margin details for a particular segment.
|
List<MFHolding> |
KiteConnect.getMFHoldings()
Retrieve all the mutualfunds holdings.
|
List<MFInstrument> |
KiteConnect.getMFInstruments()
Retrieves mutualfunds instruments.
|
MFOrder |
KiteConnect.getMFOrder(String orderId)
Retrieves individual mutualfunds order.
|
List<MFOrder> |
KiteConnect.getMFOrders()
Retrieves all mutualfunds orders.
|
MFSIP |
KiteConnect.getMFSIP(String sipId)
Retrieve an individual sip.
|
List<MFSIP> |
KiteConnect.getMFSIPs()
Retrieve all mutualfunds sip.
|
Map<String,OHLCQuote> |
KiteConnect.getOHLC(String[] instruments)
Retrieves OHLC and last price.
|
List<Order> |
KiteConnect.getOrderHistory(String orderId)
Returns list of different stages an order has gone through.
|
List<Order> |
KiteConnect.getOrders()
Fetches collection of orders from the orderbook.
|
List<Trade> |
KiteConnect.getOrderTrades(String orderId)
Retrieves list of trades executed of an order.
|
Map<String,List<Position>> |
KiteConnect.getPositions()
Retrieves the list of positions.
|
Profile |
KiteConnect.getProfile()
Get the profile details of the use.
|
Map<String,Quote> |
KiteConnect.getQuote(String[] instruments)
Retrieves quote and market depth for an instrument
|
List<Trade> |
KiteConnect.getTrades()
Retrieves list of trades executed.
|
Map<String,TriggerRange> |
KiteConnect.getTriggerRange(String[] instruments,
String transactionType)
Retrieves buy or sell trigger range for Cover Orders.
|
org.json.JSONObject |
KiteConnect.invalidateAccessToken()
Kills the session by invalidating the access token.
|
org.json.JSONObject |
KiteConnect.invalidateRefreshToken(String refreshToken)
Kills the refresh token.
|
org.json.JSONObject |
KiteConnect.logout()
Logs out user by invalidating the access token.
|
GTT |
KiteConnect.modifyGTT(int gttId,
GTTParams gttParams)
Modify a GTT.
|
boolean |
KiteConnect.modifyMFSIP(String frequency,
int day,
int instalments,
double amount,
String status,
String sipId)
Modify a mutualfunds sip.
|
Order |
KiteConnect.modifyOrder(String orderId,
OrderParams orderParams,
String variety)
Modifies an open order.
|
GTT |
KiteConnect.placeGTT(GTTParams gttParams)
Place a GTT.
|
MFOrder |
KiteConnect.placeMFOrder(String tradingsymbol,
String transactionType,
double amount,
double quantity,
String tag)
Place a mutualfunds order.
|
MFSIP |
KiteConnect.placeMFSIP(String tradingsymbol,
String frequency,
int installmentDay,
int instalments,
int initialAmount,
double amount)
Place a mutualfunds sip.
|
Order |
KiteConnect.placeOrder(OrderParams orderParams,
String variety)
Places an order.
|
TokenSet |
KiteConnect.renewAccessToken(String refreshToken,
String apiSecret)
Get a new access token using refresh token.
|
Modifier and Type | Method and Description |
---|---|
org.json.JSONObject |
KiteRequestHandler.deleteRequest(String url,
Map<String,Object> params,
String apiKey,
String accessToken)
Makes a DELETE request.
|
String |
KiteRequestHandler.getCSVRequest(String url,
String apiKey,
String accessToken)
Makes GET request to fetch CSV dump.
|
org.json.JSONObject |
KiteRequestHandler.getRequest(String url,
Map<String,Object> params,
String apiKey,
String accessToken)
Makes a GET request.
|
org.json.JSONObject |
KiteRequestHandler.getRequest(String url,
String apiKey,
String accessToken)
Makes a GET request.
|
org.json.JSONObject |
KiteRequestHandler.getRequest(String url,
String commonKey,
String[] values,
String apiKey,
String accessToken)
Makes a GET request.
|
org.json.JSONObject |
KiteResponseHandler.handle(okhttp3.Response response,
String body) |
String |
KiteResponseHandler.handle(okhttp3.Response response,
String body,
String type) |
org.json.JSONObject |
KiteRequestHandler.postRequest(String url,
Map<String,Object> params,
String apiKey,
String accessToken)
Makes a POST request.
|
org.json.JSONObject |
KiteRequestHandler.postRequestJSON(String url,
org.json.JSONArray jsonArray,
Map<String,Object> queryParams,
String apiKey,
String accessToken)
Make a JSON POST request.
|
org.json.JSONObject |
KiteRequestHandler.putRequest(String url,
Map<String,Object> params,
String apiKey,
String accessToken)
Makes a PUT request.
|
Modifier and Type | Class and Description |
---|---|
class |
DataException
Exceptions raised when invalid data is returned from kite trade.
|
class |
GeneralException
An unclassified, general error.
|
class |
InputException
Represents user input errors such as missing and invalid parameters.
|
class |
NetworkException
Represents a network issue between Kite and the backend Order Management System (OMS).
|
class |
OrderException
Represents all order placement and manipulation errors.
|
class |
PermissionException
Represents permission denied exceptions for certain calls.
|
class |
TokenException
Denotes session is expired.
|
Modifier and Type | Method and Description |
---|---|
void |
OnError.onError(KiteException kiteException) |
Modifier and Type | Method and Description |
---|---|
void |
KiteTicker.setMaximumRetries(int maxRetries)
Set max number of retries for reconnection, for infinite retries set value as -1.
|
void |
KiteTicker.setMaximumRetryInterval(int interval) |
Copyright © 2022. All rights reserved.