Filter Overbought and Oversold Stocks using JAVA and Zerodha Kiteconnect API.
IMPORT LIBRARIES import com.zerodhatech.kiteconnect.KiteConnect; import com.zerodhatech.kiteconnect.kitehttp.exceptions.KiteException; import com.zerodhatech.models.*; import java.io.IOException; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; import org.json.JSONException; DECLARE VARIABLES public static KiteConnect kiteSdk; public static String instrumentToken[][]=new String[1900][2]; public static int instrumentCount=0; public static boolean stopScan=false; CONNECTING TO KITE String req_token=JOptionPane.showInputDialog(this,"ENTER REQUEST TOKEN"); String api_key=""; String sec_key=""; kiteSdk = new KiteConnect(""); kiteSdk.setUserId("LP8865"); User users = null; try { users = kiteSdk.generateSession(req_token, sec_key); } catch (IOException ex) { } catch (KiteException | JSONException ex) { Logger.getLo