Skip to content

rohancherukuri14/stock-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stock News Analyzer

A stock analyzer based on up-to-date news articles and quantitative measures.

Table of Contents

Introduction

This project was created using Flask, React, Metaphor, OpenAI, and yFinance.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python (version 3.11)
  • Node.js (version 18.17)
  • npm (version 9.6.7)
  • pip (version 23.2.1)
  • Your API keys for OpenAI and Metaphor, which should be placed in a config.json file.

Getting Started

This section provides step-by-step instructions on how to set up and run your project.

Backend Setup

  1. Clone this repository to your local machine:

    git clone https://github.com/rohancherukuri14/stock-info.git
  2. Navigate to the repository and install the required pip packages:

    pip install -r requirements.txt
  3. Create a config.json file with your Metaphor and OpenAI API keys:

    {
     "gpt_api_key": "your-gpt-api-key",
     "metaphor_api_key": "your-metaphor-api-key"
     }
  4. Navigate to the backend folder and start the Flask app:

    cd backend
    python app.py

Frontend Setup

  1. Open a new terminal tab with the repository and navigate to the stock-info react app:
    cd stock-info
  2. Install frontend dependencies:
npm install
  1. Run the frontend app:
    npm start
  2. Your frontend React app should now be running on http://localhost:3000.

Usage

Enter a valid stock ticker into the input box. Wait for a couple seconds and you will be able to a view an in-depth textual analysis of the stock, a table with quantitative measures, a graph with recent stock trends, and useful links for more research.

Screenshot 2023-10-01 at 5 56 29 PM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published