Regarding getOHLC method in Example.java

amitabhchoudhury
This is the code...
~~~~
String[] instruments = {"256265","BSE:INFY", "NSE:INFY", "NSE:NIFTY 50"};
System.out.println(kiteConnect.getOHLC(instruments).get("256265").lastPrice);
System.out.println(kiteConnect.getOHLC(instruments).get("NSE:NIFTY 50").ohlc.open);
~~~~
What should be used for NIFTY 16th FEB 17900 CE option

String[] instruments = {"NSE:NIFTY2321617900CE"};
gave null;
String[] instruments = {"NSE:NIFTY 16th FEB 17900 CE"};
didn't work
String[] instruments = {"NSE:NIFTY16FEB17900CE"};
didn't work

Sign In or Register to comment.