Skip to content

Where does screeni-py Fetches its data from? #113

Answered by pranjal-joshi
sachinkar asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @sachinkar,
The Fetcher class uses the CSV file from the old NSE website to get the group of stocks by their market cap. This only provides the Name of the stocks and not the OHLC data.
Please view the following source code to get more idea

def fetchCodes(self, tickerOption,proxyServer=None):
listStockCodes = []
if tickerOption == 12:
return list(nse.get_stock_codes(cached=False))[1:]
tickerMapping = {
1: "https://www1.nseindia.com/content/indices/ind_nifty50list.csv",
2: "https://www1.nseindia.com/content/indices/ind_niftynext50list.csv",
3: "https://www1.nseindia.com/content/ind…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by pranjal-joshi
Comment options

You must be logged in to vote
3 replies
@pranjal-joshi
Comment options

@sachinkar
Comment options

@pranjal-joshi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants