rileycleavenger / StockBuddy

webapp that periodically gathers new stock data and web scrapes stock news headlines, then passes all the data through an LLM to return suggested purchases for the day
https://stock-buddy-nu.vercel.app/
5 stars 0 forks source link

Combine gpt api, alpha vantage, and scraper into one container and host #39

Open rileycleavenger opened 4 months ago

rileycleavenger commented 4 months ago
rileycleavenger commented 4 months ago

Main Code for when GET request is made:

  1. check if scraper/alpha vantage has run today (check based on most recent date_posted date in historical stock data table)
  2. if not, run scraper, pass gainers and losers into get_historical_data() function
  3. read all historical stock data from database table WHERE date_posted == current date
  4. pass this data and user filters (hard code some for now) into gpt api
  5. output suggestions into database with current user (hard code for now)
  6. return success message