# trueazp/bachelor-final-project architecture

> Architecture diagram of the GitHub repository trueazp/bachelor-final-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/trueazp/bachelor-final-project
- Repository: https://github.com/trueazp/bachelor-final-project

## Overview

This is a Streamlit dashboard for Ethereum market analysis and price prediction. The visible workflow loads ETH-USD history, presents current market metrics and charts, and offers short- or long-term prediction inputs; the prediction routine prepares price data, trains an LSTM, and constructs forecast comparisons. The excerpts show the data-download call and some dashboard calls, but omit parts of the app’s routing and chart invocations, so those links are left unverified rather than inferred. No persistent store is evident.

Main entry points: [`main.py`](https://github.com/trueazp/bachelor-final-project/blob/main/main.py) (Streamlit app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard"]
  node_app["Streamlit app<br/>[main.py]"]
end

subgraph group_market["Market analysis"]
  node_market_data["Market data loader<br/>[main.py]"]
  node_metrics["Market metrics<br/>[main.py]"]
  node_history_chart["Historical trend chart<br/>[main.py]"]
  node_averages_chart["Moving averages chart<br/>[main.py]"]
end

subgraph group_forecast["Price prediction"]
  node_forecast_inputs["Forecast controls<br/>[main.py]"]
  node_prediction["LSTM prediction<br/>[main.py]"]
  node_forecast_chart["Actual vs predicted chart<br/>[main.py]"]
end

node_user(("Dashboard user"))
node_yahoo["Yahoo Finance"]

node_user -.->|"uses"| node_app
node_app -->|"loads data"| node_market_data
node_market_data -->|"downloads prices"| node_yahoo
node_app -->|"renders"| node_metrics
node_app -->|"renders"| node_averages_chart
node_app -.->|"renders"| node_history_chart
node_app -.->|"offers controls"| node_forecast_inputs
node_forecast_inputs -.->|"starts prediction"| node_prediction
node_prediction -.->|"plots comparison"| node_forecast_chart

click node_app "https://github.com/trueazp/bachelor-final-project/blob/main/main.py"
click node_market_data "https://github.com/trueazp/bachelor-final-project/blob/main/main.py"
click node_metrics "https://github.com/trueazp/bachelor-final-project/blob/main/main.py"
click node_history_chart "https://github.com/trueazp/bachelor-final-project/blob/main/main.py"
click node_averages_chart "https://github.com/trueazp/bachelor-final-project/blob/main/main.py"
click node_forecast_inputs "https://github.com/trueazp/bachelor-final-project/blob/main/main.py"
click node_prediction "https://github.com/trueazp/bachelor-final-project/blob/main/main.py"
click node_forecast_chart "https://github.com/trueazp/bachelor-final-project/blob/main/main.py"

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_user toneBlue
class node_market_data,node_metrics,node_history_chart,node_averages_chart toneAmber
class node_forecast_inputs,node_prediction,node_forecast_chart toneMint
class node_yahoo toneIndigo
```

## Components

### Dashboard

- [Streamlit app](https://github.com/trueazp/bachelor-final-project/blob/main/main.py): `main.py`

### Market analysis

- [Market data loader](https://github.com/trueazp/bachelor-final-project/blob/main/main.py): `main.py`
- [Market metrics](https://github.com/trueazp/bachelor-final-project/blob/main/main.py): `main.py`
- [Historical trend chart](https://github.com/trueazp/bachelor-final-project/blob/main/main.py): `main.py`
- [Moving averages chart](https://github.com/trueazp/bachelor-final-project/blob/main/main.py): `main.py`

### Price prediction

- [Forecast controls](https://github.com/trueazp/bachelor-final-project/blob/main/main.py): `main.py`
- [LSTM prediction](https://github.com/trueazp/bachelor-final-project/blob/main/main.py): `main.py`
- [Actual vs predicted chart](https://github.com/trueazp/bachelor-final-project/blob/main/main.py): `main.py`

### Other components

- **Dashboard user**
- **Yahoo Finance**

## Connections

- Dashboard user → Streamlit app: uses
- Streamlit app → Market data loader: loads data (evidence: `main.py`)
- Market data loader → Yahoo Finance: downloads prices (evidence: `main.py`)
- Streamlit app → Market metrics: renders (evidence: `main.py`)
- Streamlit app → Moving averages chart: renders (evidence: `main.py`)
- Streamlit app → Historical trend chart: renders (evidence: `main.py`)
- Streamlit app → Forecast controls: offers controls (evidence: `main.py`)
- Forecast controls → LSTM prediction: starts prediction (evidence: `main.py`)
- LSTM prediction → Actual vs predicted chart: plots comparison (evidence: `main.py`)
