Get the future data

ZH5240
Hi,

I am trying to get the data for future using java client of Kite connect .I have written following code to get the market dept for future data.

String[] instruments = {"NFO:NIFTY50ONGC" ,"NFO:NIFTY50ONGCFUT" };
Map quotes = kiteSdk.getQuote(instruments);
System.out.println(quotes);

But I am getting empty result.Could you please send me the correct format of instruments to be passed?

Thanks,
  • sujith
    I don't think this is a valid tradingsymbol. You can look for correct tradingsymbol here.
  • ZH5240
    Thanks. I am able to get data. Can I get request token problematically?
  • sujith
    It is mandatory by the exchange that a user has to log in manually at least once a day. We don't recommend automating login.
    You can refer to this thread to know how to properly use access token.
Sign In or Register to comment.