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:
Route: /
- Stock Historic Data Visualization Chart
- Data from Historic Database
Route: /live
- Stock Live Data Visualization and sending data to live_database
Route: /onlylive
- Only Tick per second Data for Data Visualization
Installation
-
Clone the repository:
git clone https://github.com/abhiwer/stock_historic_data.git cd stock_historic_data
-
Create and activate a virtual environment:
python -m venv env source env/bin/activate # On Windows use `env\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
Usage
-
Run the application:
flask run -
Open your browser and navigate to:
http://127.0.0.1:5000/for Stock Historic Data Visualization Charthttp://127.0.0.1:5000/livefor Stock Live Data Visualizationhttp://127.0.0.1:5000/onlylivefor 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98bb8df0d450b5f69e2a55e0ab29ce207a2ee6cef532f32e1dae75cde5f405f3
|
|
| MD5 |
89686f38555fa55df22f525b50f173df
|
|
| BLAKE2b-256 |
b10f087b58d4b166f0c5993fad0833e033861ece8c5ed33ec1041285e4e0fc37
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stock_historic_data-0.1.1.tar.gz -
Subject digest:
98bb8df0d450b5f69e2a55e0ab29ce207a2ee6cef532f32e1dae75cde5f405f3 - Sigstore transparency entry: 157310524
- Sigstore integration time:
-
Permalink:
abhiwer/stock_historic_data@c59f462d7c84d3920cc7a13e2998b6e05ff25cb2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/abhiwer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package.yml@c59f462d7c84d3920cc7a13e2998b6e05ff25cb2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file stock_historic_data-0.1.1-py3-none-any.whl.
File metadata
- Download URL: stock_historic_data-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bc7799996e3376d242ab06313bf01b4a2e4c3013711cd73a40078d68146d129
|
|
| MD5 |
bae37858948d941c667d594ba43bbd1b
|
|
| BLAKE2b-256 |
f7631f73c015bd2f62e0b640d7a4a91f88819f2d9508589928e3daa4be563324
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stock_historic_data-0.1.1-py3-none-any.whl -
Subject digest:
7bc7799996e3376d242ab06313bf01b4a2e4c3013711cd73a40078d68146d129 - Sigstore transparency entry: 157310525
- Sigstore integration time:
-
Permalink:
abhiwer/stock_historic_data@c59f462d7c84d3920cc7a13e2998b6e05ff25cb2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/abhiwer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-package.yml@c59f462d7c84d3920cc7a13e2998b6e05ff25cb2 -
Trigger Event:
push
-
Statement type: