iam-abbas / Reddit-Stock-Trends
- вторник, 9 февраля 2021 г. в 00:26:10
Python
Fetch currently trending stocks on Reddit
See trending stock tickers on Reddit and check Stock perfomance
src/
directory.praw.ini
file with the following[ClientSecrets]
client_id=<your client id>
client_secret=<your client secret>
user_agent=<your user agent>
Note that the title of this section, ClientSecrets
, is important because ticker_counts.py
will specifically look for that title in the praw.ini
file.
pip install -r requirements.txt
ticker_count.py
firstyfinance_analysis.py
data/
directory.Included for potential future use is a csv file that contains all the listed ticker symbols for stocks, ETFs, and mutual funds (~50,000 tickers). This was retrieved from https://eodhistoricaldata.com/. You can register for a free api key and get up to 20 api calls every 24 hours.
To retrieve a csv of all USA ticker symbols, use the following:
https://eodhistoricaldata.com/api/exchange-symbol-list/US?api_token={YOUR_API_KEY}
I would love to see more work done on this, I think this could be something very useful at some point. All contributions are welcome. Go ahead and open a PR.
Suggestions are appreciated.
If you like what I am doing, consider buying me a coffee this helps me give more time to this project and improve.
If you decide to use this anywhere please give a credit to @abbasmdj on twitter, also If you like my work, check out other projects on my Github and my personal blog.