# wiisum15/wiisums-algexchange architecture

> Architecture diagram of the GitHub repository wiisum15/wiisums-algexchange, 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/wiisum15/wiisums-algexchange
- Repository: https://github.com/wiisum15/wiisums-algexchange

## Overview

AlgExchange is currently a compact Python market-data fetcher, not the broader analytics and trading platform described as future or framework capabilities in the README. Its main workflow selects supported, current tickers, fetches missing historical prices from Tiingo, then updates local price caches and a manifest. The excerpt shows the fetcher and persistence helpers, but omits important orchestration details; edges below are limited to relationships visible in the excerpt or README.

Main entry points: [`core_fetcher.py`](https://github.com/wiisum15/wiisums-algexchange/blob/main/core_fetcher.py) (Fetch orchestration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_market_data["Market data"]
  node_fetcher["Fetch orchestration<br/>[core_fetcher.py]"]
  node_ticker_catalog["Ticker catalog<br/>[core_fetcher.py]"]
  node_history_fetch["Price history fetch<br/>[core_fetcher.py]"]
end

subgraph group_local_state["Local state"]
  node_manifest["Fetch manifest<br/>[core_fetcher.py]"]
  node_price_cache[("Historical price cache<br/>[core_fetcher.py]")]
end

node_user(("Operator"))
node_tiingo["Tiingo API"]

node_user -->|"runs"| node_fetcher
node_fetcher -->|"gets tickers"| node_ticker_catalog
node_ticker_catalog -->|"requests listings"| node_tiingo
node_fetcher -->|"resolves dates"| node_manifest
node_fetcher -->|"submits fetches"| node_history_fetch
node_history_fetch -->|"requests prices"| node_tiingo
node_fetcher -->|"merges results"| node_price_cache
node_fetcher -->|"updates records"| node_manifest

click node_fetcher "https://github.com/wiisum15/wiisums-algexchange/blob/main/core_fetcher.py"
click node_ticker_catalog "https://github.com/wiisum15/wiisums-algexchange/blob/main/core_fetcher.py"
click node_history_fetch "https://github.com/wiisum15/wiisums-algexchange/blob/main/core_fetcher.py"
click node_manifest "https://github.com/wiisum15/wiisums-algexchange/blob/main/core_fetcher.py"
click node_price_cache "https://github.com/wiisum15/wiisums-algexchange/blob/main/core_fetcher.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_fetcher,node_ticker_catalog,node_history_fetch toneBlue
class node_manifest,node_price_cache toneAmber
class node_user toneIndigo
class node_tiingo toneMint
```

## Components

### Market data

- [Fetch orchestration](https://github.com/wiisum15/wiisums-algexchange/blob/main/core_fetcher.py): `core_fetcher.py`
- [Ticker catalog](https://github.com/wiisum15/wiisums-algexchange/blob/main/core_fetcher.py): `core_fetcher.py`
- [Price history fetch](https://github.com/wiisum15/wiisums-algexchange/blob/main/core_fetcher.py): `core_fetcher.py`

### Local state

- [Fetch manifest](https://github.com/wiisum15/wiisums-algexchange/blob/main/core_fetcher.py): `core_fetcher.py`
- [Historical price cache](https://github.com/wiisum15/wiisums-algexchange/blob/main/core_fetcher.py): `core_fetcher.py`

### Other components

- **Operator**
- **Tiingo API**

## Connections

- Operator → Fetch orchestration: runs (evidence: `core_fetcher.py`)
- Fetch orchestration → Ticker catalog: gets tickers (evidence: `core_fetcher.py`)
- Ticker catalog → Tiingo API: requests listings (evidence: `core_fetcher.py`)
- Fetch orchestration → Fetch manifest: resolves dates (evidence: `core_fetcher.py`)
- Fetch orchestration → Price history fetch: submits fetches (evidence: `core_fetcher.py`)
- Price history fetch → Tiingo API: requests prices (evidence: `core_fetcher.py`)
- Fetch orchestration → Historical price cache: merges results (evidence: `core_fetcher.py`)
- Fetch orchestration → Fetch manifest: updates records (evidence: `core_fetcher.py`)
