i see subscribe function accepts only of type 'long'. Not sure how to subscribe the string values provided- "BSE:INFY", "NSE:INFY", "NSE:NIFTY 50" public void subscribe(ArrayList tokens)
Also I am not getting the instrument token for "BSE:INFY", "NSE:INFY", "NSE:NIFTY 50" as given method accepts input parameter as exchange. List getInstruments(String exchange)
It is a CSV response, you can check out the documentation to know more.
https://github.com/zerodhatech/javakiteconnect/blob/master/sample/src/Examples.java