It looks like you're new here. If you want to get involved, click one of these buttons!
public void getLTP(KiteConnect kiteConnect) throws KiteException {
String[] instruments = {"MARUTI18FEBFUT","BSE:INFY", "NSE:INFY", "NSE:NIFTY 50"};
System.out.println(kiteConnect.getLTP(instruments).get("MARUTI18FEBFUT").lastPrice);
}
Error:(41, 46) java: unreported exception java.io.IOException; must be caught or declared to be thrown.
You need to send a combination of the exchange and tradingsymbol while requesting for quote data.
You need to send
NFO: MARUTI18FEBFUT
.You need to generate candles using live market data from Websockets.