Skip to content

marketcalls/tradingview-yahoo-finance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TradingView Chart with Yahoo Finance Data

This project is a web application that displays TradingView lightweight charts with real-time stock data fetched from Yahoo Finance. The application features an interactive UI built with Flask, SQLAlchemy, and Tailwind CSS with DaisyUI components. Users can view and analyze stock data using technical indicators, manage a watchlist of symbols, and toggle between light and dark themes.

Features

Chart Analysis

  • Fetch and display real-time stock data from Yahoo Finance using the yfinance library
  • View stock data in multiple timeframes (1 minute, 5 minutes, 15 minutes, hourly, daily, weekly, monthly)
  • Technical analysis indicators including EMA and RSI
  • Auto-update option for real-time data monitoring

Watchlist Management

  • Dynamic watchlist with real-time quotes for multiple symbols
  • Add and remove symbols from the watchlist with instant UI updates
  • Persistent storage of watchlist symbols in SQLite database
  • Smooth animations for symbol addition and removal

User Interface

  • Modern, responsive UI built with Tailwind CSS and DaisyUI components
  • Toggle between light and dark themes
  • Mobile-friendly design with drawer navigation

Installation

Follow these steps to set up and run the application:

Prerequisites

  • Python 3.x

Steps

  1. Clone the repository:

    git clone https://github.com/marketcalls/tradingview-yahoo-finance.git
    cd tradingview-yahoo-finance
  2. Create a virtual environment:

    Windows:

    python -m venv venv
    venv\Scripts\activate

    macOS/Linux:

    python -m venv venv
    source venv/bin/activate
  3. Install the dependencies:

    pip install -r requirements.txt
  4. Run the Flask application:

    python app.py
  5. Open your web browser and visit:

    http://127.0.0.1:5000
    

Project Structure

├── app.py                 # Main Flask application
├── models.py              # SQLAlchemy database models
├── symbols.txt            # Default symbols file
├── templates/
│   └── index.html         # Main HTML template
├── static/
│   └── main.js            # JavaScript for chart handling and UI
├── .gitignore             # Git ignore file
└── README.md              # Project documentation

Technologies Used

  • Backend: Flask, SQLAlchemy, SQLite
  • Data: Yahoo Finance API (via yfinance)
  • Frontend: JavaScript, Tailwind CSS, DaisyUI
  • Charting: Lightweight-charts.js

License

This project is licensed under the MIT License.

About

Tradingview with Yahoo Finance Data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published