Where does screeni-py Fetches its data from? #113
-
Hello. I just stumbled upon this interesting tool. Ran a few test queries and saw a line that says "Getting Stock Codes From NSE..." which got me wondering how does screeni-py get its data? Do you host a separate private server/DB where it sends all its queries and gets the data from or do you use NSE's API or something? I haven't gone through the source code yet so just figured I'd leave a question here in Q&A section. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @sachinkar, Screeni-py/src/classes/Fetcher.py Lines 37 to 68 in 6f9bb0f After getting the stock names, screenipy uses Yahoo finance ( Screeni-py/src/classes/Fetcher.py Lines 111 to 118 in 6f9bb0f In After-Market hours, the GitHub Actions automatically fetch & cache the closing data from the same API and the screenipy will be using this cache instead of re-fetching through |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
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
Screeni-py/src/classes/Fetcher.py
Lines 37 to 68 in 6f9bb0f