8000 GitHub - Thocook/Stock-Price-Extractor: Scheduled server for minute-by-minute stock price data extraction.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Thocook/Stock-Price-Extractor

Repository files navigation

Overview

A Dockerized application that automatically extracts stock prices from yfinance every minute, stores them in an SQLite database, and displays them through a Flask-based web interface.

Features

  • Automated 1-minute stock price extraction
  • Dockerized environment for consistent deployment
  • Scheduled data fetching with cron jobs
  • Data storage in SQLite database
  • Flask-based back-end for handling HTTP requests
  • Simple front-end with HTML and CSS for data display

Tech Stack

  • Programming Languages: Python, Bash
  • Database: SQLite
  • Web Framework: Flask
  • Containerization: Docker
  • Scheduling: Cron
  • Frontend Technologies: HTML, CSS

Architecture

The project is Dockerized and uses a shell script to initialize the environment. A cron job executes a Python script to fetch stock prices and store them in an SQLite database, ensuring automated updating. Flask handles HTTP requests and interacts with the database, serving a simple front-end built with HTML and CSS.

image

Usage

  • Port 80:
    1. Download the repository.
    2. Build the container. docker build -t stock_price_extractor . docker run -d -p 80:80 stock_price_extractor
    3. Access the application via a web browser at http://localhost:80.
    4. The stock prices are automatically updated as per the cron job schedule.

Configuration

  • Cron Job Schedule: Modify the cron job schedule in the crontab file to change the frequency of data fetching.
  • Database: The SQLite database file is located at stock_prices.db.

Possible Advancements

  • Expand the list of tickers to create a bigger database.
  • Use a more robust database like PostgreSQL for better scalability.
  • Host the container on an online server for consistent availability.

UI:

image

About

Scheduled server for minute-by-minute stock price data extraction.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0