I'm using the kite.instruments() function to get all instruments and store them in a pandas data frame. Next, I want to filter the instruments to get only individual stocks and not ETFs. Is there a way to do this?
There's isn't a direct identifier offered in the instruments file from the exchange like Series, etc to identify ETFs. You will need to maintain a manual list of ETFs available to trade. You can download symbols from here and exclude them from your logic. Since very few ETFs get listed, you could probably update this list once every month or quarter manually.
There's isn't a direct identifier offered in the instruments file from the exchange like Series, etc to identify ETFs.
You will need to maintain a manual list of ETFs available to trade. You can download symbols from here and exclude them from your logic. Since very few ETFs get listed, you could probably update this list once every month or quarter manually.