See trending stock tickers on Reddit and check Stock perfomance
back/
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_counts.py
first.yfinance_analysis.py
.data/
directory.wsgi.py
to start a server that returns the data in JSON format. This step will generate the csv files if they don't already exist.There's also a JavaScript web app that shows some data visualizations.
Start the local server. This server will generate the csv files if they don't already exist.
cd back
python wsgi.py
Then, launch the client
cd front
cp .env.example .env
npm install
npm run serve
You can change the env variables if you need to
docker-compose up -d
to start all services in the background. (-d == detatched)docker-compose up <servicename>
to bring up a specific service.docker-compose rm
removes the imagedocker-compose ps
to list running servicesdocker-compose up --build
if you made changes to the compose or dockerfiles and need it built into a new image.docker-compose build --no-cache
if you made changes to specific files and docker does not recognize as new thereby reusing cached layers incorrectly. This takes about 3 minutes on a gaming pc with 0 docker tuning.compose.yml
determines service names and which ports are bound to your host. By default front=8080 back=5006.up
navigate to http://localhost:8080/. docker-compose stop
stops all servicesThere's also a React JavaScript web app that has +3 more features than the vue app.
Start the local server. This server will generate the csv files if they don't already exist.
cd back
python wsgi.py
Then, launch the client
cd react-front
cp .env.example .env
npm install
npm start
You can change the env variables if you need to
No Docker solution for the react app.
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.
See this page.
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.
TickerHype: https://tickerhype.com/
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.