A web app that renders price history charts, details, and news for stocks. Only supports entering stock tickers due to limitations with the IEX Cloud API.
When I took my first intro to CS course back in 2019, the final project I worked on was a really basic stock web app (here). I've learned a lot since, so I decided to make a remake/remaster of it! I rebuilt the project using the same API but with a more modern stack and overall nicer design.
You'll first have to register for an account on IEX Cloud to obtain an API token. Then, set the token as the IEX_TOKEN
environment variable.
You can refer to the IEX Cloud API documentation for more details.
The IEX Cloud API is now pretty limited on the free tier, so the website displays fallback data to maintain interactivity.
STAWKS utilizes incremental static regeneration (ISR) from Next.js to statically generate stock pages while also keeping data up to date, resulting in excellent performance. The homepage is revalidated every 30 minutes while the stock page is revalidated every minute.
STAWKS is licensed under MIT.