This is the model will take the input is the query related to the financial field specificly for stock to answer about the based knowledge question or analysis the specific stocks using 1 year historical data prices with 1 year news related to the stock symbol
|
Input Query: What is the current price of Nvidia?
|
Input Query: What is a P/E ratio?
|
Input Query: Should I invest in an IPO?
|
Method 1: Install using pip (Manual)
- Make sure you have Python installed on your system.
- Open a terminal or command prompt.
- Navigate to the project directory where the
requirements.txtfile is located. - Run the following command to install the required packages:
pip install -r requirements.txtMethod 2: Install using Script (Automatically)
- Double-click the
Install.batfile to automatically install the required packages (Windows only).
-
Open the
.envfile located in therootdirectory. -
Replace the placeholder values with your actual API keys for OpenAI, Finnhub, and Financial Modeling Prep.
-
Save the changes to the
.envfile.OPENAI_API_KEY=your_openai_api_key FINNHUB_API_KEY=your_finnhub_api_key FMP_API_KEY=your_financial_modeling_prep_api_key
Method 1: Run the code in terminal (Manual)
- Step 1: Update the sqlite Database
python manage.py migrate- Step 2: Run the Django Server
python manage.py runserverMethod 2: Run the code using Script (Automatically)
- Double-click the
Analysis_Server.batfile to automatically run the server (Windows only).
-
Step 1: Install and Configure ngrok
- Go to the ngrok website to sign up and download the client (ngrok)
- Find your authtoken on the ngrok dashboard.
- Connect your account using the command below.
ngrok config add-authtoken YOUR_AUTHTOKEN
-
Step 2: Run Django Server and ngrok
- Terminal 1: Start Django
python manage.py runserver - Terminal 2: Start ngrok
ngrok http 8000
- Terminal 1: Start Django
-
Step 3: Access Your Public URL
- Ngrok will provide a public URL that forwards to your local server. Look for the "Forwarding" line in the ngrok terminal.
Forwarding https://random-string.ngrok-free.app -> http://localhost:8000
- Ngrok will provide a public URL that forwards to your local server. Look for the "Forwarding" line in the ngrok terminal.



