ooples / OoplesFinance.YahooFinanceAPI

A .NET API wrapper for Yahoo Finance that allows users to get top trending stocks, historical stock data, stock splits, dividends, capital gains, and much much more!
Apache License 2.0
43 stars 9 forks source link

How to use this effectively for Indian Markets NSE Stocks #78

Open rahulmr opened 1 month ago

rahulmr commented 1 month ago

Thanks for the wonderful work. Could you please provide some information on how we can use this to work with Indian Markets NSE Stocks?

The symbols are different for NSE India. I also wanted to understand if there is any country specific methods to get the information like breakout stocks, etc.

ooples commented 1 month ago

There are a few API calls in this library that take a Country as a parameter such as the one below:

await GetTopTrendingStocksAsync(Country.India, 10);

The above code can be used to get the top 10 trending Indian stocks using NSE India and there are quite a few methods that can use the Country but I see that I need to make it more uniform across the board because to properly utilize the country code, you need to initialize the yahoo client class by using this code:

var yahooClient = new YahooClient(Country.India); var keyStats = await GetKeyStatisticsAsync("NIFTY");

Overall for now I would experiment with this library but make sure to initialize YahooClient with the country of your choice

rahulmr commented 1 month ago

Thanks!