Stock Assistant
The Stock Assistant enables you to create a ChatGPT-like experience for anlyzing companies/stocks. Ask it questions about recent news, sentiments and stock prices and it will answer. This Assistant utilizes the Alpha Vantage API for accessing real-time stock information as well as the Bing Search API and the Superagent Browser API.
Demo
Installation
-
Clone the following repository https://github.com/homanp/super-stocks
-
Change the name of
.env.example
to.env
and fill out the variables. You need to setup a Superagent and Alpha Vantage account to retrieve API keys. -
Install the dependencies
-
Run the app
Superagent setup
This app required you to have a Superagent account. Create an account by signing up: https://beta.superaget.sh.
- Visit https://beta.superagent.sh/apis and create a new API called
Stock API
.
-
Optionally create a
Browser
andBing Search
APIs as well. -
Create an Agent and attach the APIs to it.
Make sure to use on of the models that has function calling
capabilities such as GPT-3.5-TURBO-16K-0613
or GPT-4-0613
.
- Copy the Agent ID and place it into your
.env
file.
Deployment
After configuring the above you can deploy this Assistant to Vercel using these instructions.
Stack
- GPT-3.5-TURBO-16K-0613
- Superagent Browser API
- Bing Search API
- AlphaVantage API (Real-time stock data)