How to open java websocket for "BSE:INFY", "NSE:INFY", "NSE:NIFTY 50" streaming for exchange ?

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)

Sign In or Register to comment.