Skip to content

Encode-Group16-AI-bootcamp-Q3-2024/finalProject-Group16

Repository files navigation

Crypto Sentiment Analysis with TradingView Chart

This project is a web application that provides sentiment analysis for cryptocurrency projects and includes a real-time TradingView chart. It uses OpenAI's GPT-4 model to analyze sentiment across various sources including social media, market data, and technical analysis.

Features

  • Sentiment analysis for any cryptocurrency project (default: DOT/Polkadot)
  • Analysis across multiple sources: Twitter, Reddit, and Coinbase
  • Provides a sentiment breakdown, overall sentiment, and investment recommendation
  • Real-time streaming of AI-generated analysis
  • Interactive TradingView chart for visualizing cryptocurrency price data

Tech Stack

  • Frontend: Next.js with React
  • Backend: Next.js API Routes
  • AI: OpenAI GPT-4
  • Styling: Tailwind CSS
  • Charting: TradingView Widget API

Prerequisites

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

  • Node.js (v14 or later)
  • npm or yarn
  • An OpenAI API key

Installation

  1. Clone the repository:
 cd crypto-sentiment-analysis

2.Install the dependencies:

or if you're using yarn:

3.Create a .env.local file in the root directory and add your OpenAI API key:

Running the Application

  1. Start the development server:

    or with yarn:

  2. Open your browser and navigate to http://localhost:3000

Usage

  1. Enter the name of a cryptocurrency project in the input field (default is DOT for Polkadot).
  2. Click the "Analyze Sentiment" button.
  3. Wait for the AI to generate the sentiment analysis.
  4. Review the detailed breakdown of sentiment across different sources, overall sentiment, and investment recommendation.
  5. Interact with the TradingView chart to visualize price data for the selected cryptocurrency.

TradingView Chart Component

The project includes a TradingView chart component (TradingViewChart.tsx) that provides real-time price data visualization for the selected cryptocurrency.

Key features of the TradingView chart:

  • Automatically loads and displays chart for the selected cryptocurrency
  • Supports symbol changes, allowing users to view different cryptocurrencies
  • Includes various chart tools and indicators
  • Displays relevant news headlines

To use the TradingView chart in your component:

import TradingViewChart from './path/to/TradingViewChart';

function YourComponent() {
  return (
    <div>
      <TradingViewChart symbol="BTC" />
    </div>
  );
}

Replace "BTC" with the symbol of the cryptocurrency you want to display.

Contributing

Contributions to the Crypto Sentiment Analysis project are welcome. Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

  • OpenAI for providing the GPT-4 model
  • TradingView for their charting widget
  • Vercel for Next.js and hosting solutions
  • The open-source community for various tools and libraries used in this project

About

Group 16 Encode AI Bootcamp FInal Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •