Skip to main content

A project to fetch and store historic and live stock data using the Yahoo Finance API.

Project description

Stock Historic Data

This project is designed to fetch and store historic and live stock data using the Yahoo Finance API. The data is stored in SQLite databases and can be accessed via a Flask web application.

Functionality

For a detailed walkthrough of the project's functionality, you can watch the following YouTube video:

Stock Historic Data Functionality

Route: /

  • Stock Historic Data Visualization Chart
  • Data from Historic Database

Historic Data Chart

Route: /live

  • Stock Live Data Visualization and sending data to live_database

Live Data Chart

Route: /onlylive

  • Only Tick per second Data for Data Visualization

Only Live Data Chart

Installation

  1. Clone the repository:

    git clone https://github.com/abhiwer/stock_historic_data.git
    cd stock_historic_data
    
  2. Create and activate a virtual environment:

    python -m venv env
    source env/bin/activate  # On Windows use `env\Scripts\activate`
    
  3. Install the dependencies:

    pip install -r requirements.txt
    

Usage

  1. Run the application:

    flask run
    
  2. Open your browser and navigate to:

    • http://127.0.0.1:5000/ for Stock Historic Data Visualization Chart
    • http://127.0.0.1:5000/live for Stock Live Data Visualization
    • http://127.0.0.1:5000/onlylive for Only Tick per second Data Visualization

Endpoints

  • /: Main page to view historic data.
  • /live: Page to view live data.
  • /onlylive: Page to view only live data.
  • /get_dates: API to get a range of dates.
  • /get_currencies: API to get the list of supported currencies.
  • /get_updatetheliveDB: API to update the live database.
  • /get_updatethehistoricDB: API to update the historic database.

License

This project is licensed under the MIT License.

Alt text

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stock_historic_data-0.1.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stock_historic_data-0.1.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file stock_historic_data-0.1.1.tar.gz.

File metadata

  • Download URL: stock_historic_data-0.1.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for stock_historic_data-0.1.1.tar.gz
Algorithm Hash digest
SHA256 98bb8df0d450b5f69e2a55e0ab29ce207a2ee6cef532f32e1dae75cde5f405f3
MD5 89686f38555fa55df22f525b50f173df
BLAKE2b-256 b10f087b58d4b166f0c5993fad0833e033861ece8c5ed33ec1041285e4e0fc37

See more details on using hashes here.

Provenance

The following attestation bundles were made for stock_historic_data-0.1.1.tar.gz:

Publisher: python-package.yml on abhiwer/stock_historic_data

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file stock_historic_data-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for stock_historic_data-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7bc7799996e3376d242ab06313bf01b4a2e4c3013711cd73a40078d68146d129
MD5 bae37858948d941c667d594ba43bbd1b
BLAKE2b-256 f7631f73c015bd2f62e0b640d7a4a91f88819f2d9508589928e3daa4be563324

See more details on using hashes here.

Provenance

The following attestation bundles were made for stock_historic_data-0.1.1-py3-none-any.whl:

Publisher: python-package.yml on abhiwer/stock_historic_data

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page