# linschne/stockanalyser architecture

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

- Interactive diagram: https://gitdiagram.com/linschne/stockanalyser
- Repository: https://github.com/linschne/stockanalyser

## Overview

StockAnalyser is a Streamlit dashboard for finding global stock symbols, retrieving daily adjusted prices, comparing performance, and exploring moving averages. The user supplies tickers and a date range or searches for symbols; the app fetches EOD data, fills daily gaps, then presents individual and normalized charts, performance metrics, and SMA/EMA views. The single main source file contains the UI, API calls, and analysis logic. The graph reflects the shown app.py excerpts and README; unsampled details are not inferred.

Main entry points: [`app.py`](https://github.com/linschne/stockanalyser/blob/main/app.py) (Daily price series), [`styles.css`](https://github.com/linschne/stockanalyser/blob/main/styles.css) (Custom styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard workflow"]
  node_dashboard_app["Streamlit dashboard<br/>[app.py]"]
  node_symbol_search["Symbol search<br/>[app.py]"]
  node_ticker_selection["Ticker and dates<br/>[app.py]"]
  node_custom_css["Custom styling<br/>[styles.css]"]
end

subgraph group_market_data["Market data"]
  node_eod_api{{"EOD Historical Data"}}
  node_price_series["Daily price series<br/>[app.py]"]
end

subgraph group_analysis["Analysis and views"]
  node_normalization["Comparison preparation<br/>[app.py]"]
  node_price_charts["Price charts<br/>[app.py]"]
  node_performance_metrics["Performance metrics<br/>[app.py]"]
  node_moving_average["SMA and EMA analysis<br/>[app.py]"]
end

node_user(("Investor"))

node_user -->|"uses"| node_dashboard_app
node_dashboard_app -->|"loads"| node_custom_css
node_dashboard_app -->|"offers search"| node_symbol_search
node_symbol_search -->|"searches symbols"| node_eod_api
node_user -->|"sets tickers and dates"| node_ticker_selection
node_ticker_selection -->|"configures"| node_dashboard_app
node_dashboard_app -->|"requests prices"| node_eod_api
node_eod_api -->|"returns daily data"| node_price_series
node_price_series -->|"prepares comparisons"| node_normalization
node_normalization -->|"renders comparisons"| node_price_charts
node_price_series -->|"plots prices"| node_price_charts
node_price_series -->|"computes metrics"| node_performance_metrics
node_price_series -->|"computes averages"| node_moving_average

click node_dashboard_app "https://github.com/linschne/stockanalyser/blob/main/app.py"
click node_symbol_search "https://github.com/linschne/stockanalyser/blob/main/app.py"
click node_ticker_selection "https://github.com/linschne/stockanalyser/blob/main/app.py"
click node_price_series "https://github.com/linschne/stockanalyser/blob/main/app.py"
click node_normalization "https://github.com/linschne/stockanalyser/blob/main/app.py"
click node_price_charts "https://github.com/linschne/stockanalyser/blob/main/app.py"
click node_performance_metrics "https://github.com/linschne/stockanalyser/blob/main/app.py"
click node_moving_average "https://github.com/linschne/stockanalyser/blob/main/app.py"
click node_custom_css "https://github.com/linschne/stockanalyser/blob/main/styles.css"

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_dashboard_app,node_symbol_search,node_ticker_selection,node_custom_css toneBlue
class node_eod_api,node_price_series toneAmber
class node_normalization,node_price_charts,node_performance_metrics,node_moving_average toneMint
class node_user toneIndigo
```

## Components

### Dashboard workflow

- [Streamlit dashboard](https://github.com/linschne/stockanalyser/blob/main/app.py): `app.py`
- [Symbol search](https://github.com/linschne/stockanalyser/blob/main/app.py): `app.py`
- [Ticker and dates](https://github.com/linschne/stockanalyser/blob/main/app.py): `app.py`
- [Custom styling](https://github.com/linschne/stockanalyser/blob/main/styles.css): `styles.css`

### Market data

- **EOD Historical Data**
- [Daily price series](https://github.com/linschne/stockanalyser/blob/main/app.py): `app.py`

### Analysis and views

- [Comparison preparation](https://github.com/linschne/stockanalyser/blob/main/app.py): `app.py`
- [Price charts](https://github.com/linschne/stockanalyser/blob/main/app.py): `app.py`
- [Performance metrics](https://github.com/linschne/stockanalyser/blob/main/app.py): `app.py`
- [SMA and EMA analysis](https://github.com/linschne/stockanalyser/blob/main/app.py): `app.py`

### Other components

- **Investor**

## Connections

- Investor → Streamlit dashboard: uses (evidence: `README.md`)
- Streamlit dashboard → Custom styling: loads (evidence: `app.py`)
- Streamlit dashboard → Symbol search: offers search (evidence: `README.md`)
- Symbol search → EOD Historical Data: searches symbols (evidence: `app.py`)
- Investor → Ticker and dates: sets tickers and dates (evidence: `app.py`)
- Ticker and dates → Streamlit dashboard: configures (evidence: `app.py`)
- Streamlit dashboard → EOD Historical Data: requests prices (evidence: `app.py`)
- EOD Historical Data → Daily price series: returns daily data (evidence: `app.py`)
- Daily price series → Comparison preparation: prepares comparisons (evidence: `app.py`)
- Comparison preparation → Price charts: renders comparisons (evidence: `app.py`)
- Daily price series → Price charts: plots prices (evidence: `app.py`)
- Daily price series → Performance metrics: computes metrics (evidence: `app.py`)
- Daily price series → SMA and EMA analysis: computes averages (evidence: `app.py`)
