# jaedin-rogers/automated_stock_data_pipeline architecture

> Architecture diagram of the GitHub repository jaedin-rogers/automated_stock_data_pipeline, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jaedin-rogers/automated_stock_data_pipeline
- Repository: https://github.com/jaedin-rogers/automated_stock_data_pipeline

## Overview

This is a Streamlit stock dashboard backed by a CSV hosted on GitHub. Viewers see recent price rows, per-ticker summary metrics, and closing-price charts for two stock groups. Separately, an updater downloads six tickers from Yahoo Finance, normalizes and combines the data, and writes a local CSV. The app also imports `stock_functions.py`; that module performs downloads and plotting at import time. The excerpts do not show how the local CSV is published to the hosted copy, so that connection is omitted.

Main entry points: [`streamlit_stockapp.py`](https://github.com/jaedin-rogers/automated_stock_data_pipeline/blob/main/streamlit_stockapp.py) (Streamlit dashboard), [`update_data.py`](https://github.com/jaedin-rogers/automated_stock_data_pipeline/blob/main/update_data.py) (Data updater), [`stock_functions.py`](https://github.com/jaedin-rogers/automated_stock_data_pipeline/blob/main/stock_functions.py) (Stock helpers), [`stock_data.csv`](https://github.com/jaedin-rogers/automated_stock_data_pipeline/blob/main/stock_data.csv) (Generated CSV)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard"]
  node_app["Streamlit dashboard"]
  node_app_data["CSV loading and metrics"]
  node_charts["Price charts"]
end

subgraph group_data["Stock data"]
  node_helpers["Stock helpers<br/>[stock_functions.py]"]
  node_updater["Data updater<br/>[update_data.py]"]
  node_local_csv[("Generated CSV<br/>[stock_data.csv]")]
  node_hosted_data[("Hosted CSV")]
end

node_viewer(("Dashboard viewer"))
node_yahoo["Yahoo Finance"]

node_viewer -->|"opens dashboard"| node_app
node_app -->|"loads and displays"| node_app_data
node_app -->|"renders charts"| node_charts
node_app -->|"imports"| node_helpers
node_app_data -->|"fetches CSV"| node_hosted_data
node_updater -->|"downloads prices"| node_yahoo
node_updater -->|"writes dataset"| node_local_csv
node_helpers -->|"downloads prices"| node_yahoo

click node_app "https://github.com/jaedin-rogers/automated_stock_data_pipeline/blob/main/streamlit_stockapp.py"
click node_app_data "https://github.com/jaedin-rogers/automated_stock_data_pipeline/blob/main/streamlit_stockapp.py"
click node_charts "https://github.com/jaedin-rogers/automated_stock_data_pipeline/blob/main/streamlit_stockapp.py"
click node_helpers "https://github.com/jaedin-rogers/automated_stock_data_pipeline/blob/main/stock_functions.py"
click node_updater "https://github.com/jaedin-rogers/automated_stock_data_pipeline/blob/main/update_data.py"
click node_local_csv "https://github.com/jaedin-rogers/automated_stock_data_pipeline/blob/main/stock_data.csv"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_app_data,node_charts,node_viewer toneBlue
class node_helpers,node_updater,node_local_csv,node_hosted_data toneAmber
class node_yahoo toneIndigo
```

## Components

### Dashboard

- [Streamlit dashboard](https://github.com/jaedin-rogers/automated_stock_data_pipeline/blob/main/streamlit_stockapp.py): `streamlit_stockapp.py`
- [CSV loading and metrics](https://github.com/jaedin-rogers/automated_stock_data_pipeline/blob/main/streamlit_stockapp.py): `streamlit_stockapp.py`
- [Price charts](https://github.com/jaedin-rogers/automated_stock_data_pipeline/blob/main/streamlit_stockapp.py): `streamlit_stockapp.py`

### Stock data

- [Stock helpers](https://github.com/jaedin-rogers/automated_stock_data_pipeline/blob/main/stock_functions.py): `stock_functions.py`
- [Data updater](https://github.com/jaedin-rogers/automated_stock_data_pipeline/blob/main/update_data.py): `update_data.py`
- [Generated CSV](https://github.com/jaedin-rogers/automated_stock_data_pipeline/blob/main/stock_data.csv): `stock_data.csv`
- **Hosted CSV**

### Other components

- **Dashboard viewer**
- **Yahoo Finance**

## Connections

- Dashboard viewer → Streamlit dashboard: opens dashboard (evidence: `streamlit_stockapp.py`)
- Streamlit dashboard → CSV loading and metrics: loads and displays (evidence: `streamlit_stockapp.py`)
- Streamlit dashboard → Price charts: renders charts (evidence: `streamlit_stockapp.py`)
- Streamlit dashboard → Stock helpers: imports (evidence: `streamlit_stockapp.py`)
- CSV loading and metrics → Hosted CSV: fetches CSV (evidence: `streamlit_stockapp.py`)
- Data updater → Yahoo Finance: downloads prices (evidence: `update_data.py`)
- Data updater → Generated CSV: writes dataset (evidence: `update_data.py`)
- Stock helpers → Yahoo Finance: downloads prices (evidence: `stock_functions.py`)
