How can i get list of F&O stocks on NSE

hardikdesai
How can i get a list of F&O stocks which are traded on NSE? I am using KiteConnect 3-Snapshot version. I know getInstrumentsForExchange will return all stocks on an exchange but i want specific F&O stocks.
  • sujith
    You can send exchange as NFO to fetch only NSE F&O instruments.
  • hardikdesai
    Thanks @sujith for your response. However the execution of List nseInstruments = kiteConnect.getInstruments("NFO"); gets stuck and i did not get a response in more than a minute. So i had to kill the process.

    It works fine with "NSE". Can you please suggest?
  • sujith
    Are you using Kite Connect 3?
  • hardikdesai
    @sujith : Yes i am using Kite Connect 3.
  • sujith
    I just tried and it seems to be working fine on Kite Connect 3.
    The raw response is a csv dump with 59,533 rows so it might be slow if you are on a slow network.
Sign In or Register to comment.