An AI-powered stock market analysis and prediction engine that uses OpenAI's GPT-3.5/4/4o to analyze historic financial data, news headlines, and YouTube videos and predict future stock prices and performance.
This is a full-stack repository that contains both the client and server code.
You can run both the client and the server code locally. For deployment, I recommend using a cloud service like Vercel for the client and Heroku or a VPS for the server. The current deployment of this application is as follows:
YOUTUBE_API_KEY: You will need to create a YouTube API key and set it as an environment variable. You can do this by creating a .env file in the root of the project and adding the following line:
OPENAI_API_KEY: You will need to create an OpenAI API key and set it as an environment variable. You can do this by creating a .env file in the root of the project and adding the following line:
SERVER_URL: You will need to set the server url as an environment variable. You can do this by creating a .env file in the root of the project and adding the following line:
SERVER_URL=YOUR_SERVER_URL (e.g. http://localhost:8000)
git clone https://github.com/engageintellect/stonk-ai.git
cd stonk-ai/client
YOUTUBE_API_KEY=YOUR_YOUTUBE_API_KEY
OPENAI_API_KEY=YOUR_OPENAI_API_KEY
SERVER_URL=YOUR_SERVER_URL
pnpm install
pnpm run dev
pnpm run build
cd stonk-ai/server
python3 -m venv venv && source venv/bin/activate
pip3 install -r requirements.txt
python3 main.py
NOTE: Take note of the server URL. You will need it to set the SERVER_URL environment variable in the client.
server logs can be found in /stonk-ai/server/log.txt
.
git checkout -b feature
)git commit -am 'Add new feature'
)git push origin feature
)MIT License