# cheukhin1024/financial-data-project-in-azure architecture

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

- Interactive diagram: https://gitdiagram.com/cheukhin1024/financial-data-project-in-azure
- Repository: https://github.com/cheukhin1024/financial-data-project-in-azure

## Overview

This repository is a collection of financial-data engineering and quantitative-finance notebooks/scripts, rather than a single application. Its main user outcome is access to historical S&P 500 intraday data in Azure/Delta Lake; surrounding workflows ingest and maintain market data, analyze sectors and portfolios, stream quotes, and research or execute strategies. The README documents the storage and user-access model, while excerpts show selected ingestion, analysis, streaming, and trading behavior. Many notebook relationships are not visible, so unverified links are omitted or dashed.

Main entry points: [`Financial Data Engineering.py`](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Financial%20Data%20Engineering.py) (Financial data engineering), [`Short Selling IB Trading.py`](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Short%20Selling%20IB%20Trading.py) (Short-selling trader), [`FirstRate 1min data ETL.py`](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/FirstRate%201min%20data%20ETL.py) (1-minute ETL), [`FirstRate 30min data ETL.py`](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/FirstRate%2030min%20data%20ETL.py) (30-minute ETL)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data platform"]
  node_azure[("Azure Blob Storage")]
  node_delta[("Delta Lake dataset")]
  node_eng["Financial data engineering"]
  node_etlonemin["1-minute ETL"]
  node_etlthirty["30-minute ETL"]
  node_tickerdates["Ticker lifecycle dates"]
  node_vacuum["Delta maintenance"]
end

subgraph group_research["Quant research"]
  node_skcluster["Sector clustering"]
  node_sparkcluster["Distributed clustering"]
  node_pair["Pair trading research<br/>[Pair Trading.py]"]
  node_hrp["HRP optimization"]
  node_rotationbacktest["Rotation backtest"]
  node_helpers["Data and analysis utilities"]
end

subgraph group_short["Short selling"]
  node_shortscrape["Short-report scraping"]
  node_scrape["Web scraping<br/>[Web Scraping.py]"]
  node_shortbacktest["Short-selling backtest"]
  node_shorttrade["Short-selling trader"]
end

subgraph group_trading["Trading and feeds"]
  node_iex["IEX market stream"]
  node_rotationtrade["Sector rotation trader"]
  node_bloomberg["Speech transcription"]
end

node_users(("Data users"))
node_external(("Tiingo API"))
node_breakoutpoint(("BreakoutPoint"))
node_ib(("Interactive Brokers"))

node_users -->|"accesses data"| node_azure
node_eng -->|"fetches prices"| node_external
node_eng -.->|"prepares data"| node_delta
node_etlonemin -.->|"loads bars"| node_delta
node_etlthirty -.->|"loads bars"| node_delta
node_delta -->|"hosted in"| node_azure
node_tickerdates -.->|"supports history"| node_delta
node_vacuum -->|"vacuums tables"| node_delta
node_delta -->|"supplies prices"| node_skcluster
node_delta -->|"supplies prices"| node_sparkcluster
node_delta -->|"supplies prices"| node_pair
node_hrp -.->|"downloads prices"| node_external
node_rotationbacktest -.->|"uses history"| node_delta
node_shortscrape -->|"scrapes reports"| node_breakoutpoint
node_shorttrade -->|"fetches signals"| node_breakoutpoint
node_shorttrade -.->|"places trades"| node_ib
node_shortbacktest -->|"requests history"| node_ib
node_iex -->|"opens stream"| node_external
node_rotationtrade -->|"requests bars"| node_ib
node_helpers -.->|"transforms frames"| node_delta

click node_eng "https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Financial%20Data%20Engineering.py"
click node_etlonemin "https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/FirstRate%201min%20data%20ETL.py"
click node_etlthirty "https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/FirstRate%2030min%20data%20ETL.py"
click node_tickerdates "https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Extract%20FirstRate%20Stock%20Tickers%20Issue%20Date%20%26%20Delisted%20Date.py"
click node_vacuum "https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/VACUUM%20FirstRate%2030min%20delta%20tables.py"
click node_skcluster "https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/K-Mean%20clustering%20%20in%20Sector%20Classification%20using%20sklearn.py"
click node_sparkcluster "https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/K-Mean%20clustering%20in%20Sector%20Classification%20using%20SparkML.py"
click node_pair "https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Pair%20Trading.py"
click node_hrp "https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Hierarchical%20Risk%20Parity%20Algorithm.py"
click node_rotationbacktest "https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Backtest%20US%20Sector%20Rotational%20Strategy.py"
click node_shortscrape "https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Web%20Scraping%20from%20BreakoutPoint.py"
click node_scrape "https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Web%20Scraping.py"
click node_shortbacktest "https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Backtest%20Short%20Selling.py"
click node_shorttrade "https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Short%20Selling%20IB%20Trading.py"
click node_iex "https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Stream%20IEX%20Market%20Data.py"
click node_rotationtrade "https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/US%20Sector%20Rotational%20IB%20Trading.py"
click node_helpers "https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/User%20Defined%20Functions.py"
click node_bloomberg "https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Bloomberg%20Speech%20to%20Text.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_azure,node_delta,node_eng,node_etlonemin,node_etlthirty,node_tickerdates,node_vacuum,node_users toneBlue
class node_skcluster,node_sparkcluster,node_pair,node_hrp,node_rotationbacktest,node_helpers toneAmber
class node_shortscrape,node_scrape,node_shortbacktest,node_shorttrade,node_external toneMint
class node_iex,node_rotationtrade,node_bloomberg toneRose
class node_breakoutpoint,node_ib toneIndigo
```

## Components

### Data platform

- **Azure Blob Storage**
- **Delta Lake dataset**
- [Financial data engineering](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Financial%20Data%20Engineering.py): `Financial Data Engineering.py`
- [1-minute ETL](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/FirstRate%201min%20data%20ETL.py): `FirstRate 1min data ETL.py`
- [30-minute ETL](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/FirstRate%2030min%20data%20ETL.py): `FirstRate 30min data ETL.py`
- [Ticker lifecycle dates](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Extract%20FirstRate%20Stock%20Tickers%20Issue%20Date%20%26%20Delisted%20Date.py): `Extract FirstRate Stock Tickers Issue Date & Delisted Date.py`
- [Delta maintenance](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/VACUUM%20FirstRate%2030min%20delta%20tables.py): `VACUUM FirstRate 30min delta tables.py`

### Quant research

- [Sector clustering](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/K-Mean%20clustering%20%20in%20Sector%20Classification%20using%20sklearn.py): `K-Mean clustering in Sector Classification using sklearn.py`
- [Distributed clustering](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/K-Mean%20clustering%20in%20Sector%20Classification%20using%20SparkML.py): `K-Mean clustering in Sector Classification using SparkML.py`
- [Pair trading research](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Pair%20Trading.py): `Pair Trading.py`
- [HRP optimization](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Hierarchical%20Risk%20Parity%20Algorithm.py): `Hierarchical Risk Parity Algorithm.py`
- [Rotation backtest](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Backtest%20US%20Sector%20Rotational%20Strategy.py): `Backtest US Sector Rotational Strategy.py`
- [Data and analysis utilities](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/User%20Defined%20Functions.py): `User Defined Functions.py`

### Short selling

- [Short-report scraping](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Web%20Scraping%20from%20BreakoutPoint.py): `Web Scraping from BreakoutPoint.py`
- [Web scraping](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Web%20Scraping.py): `Web Scraping.py`
- [Short-selling backtest](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Backtest%20Short%20Selling.py): `Backtest Short Selling.py`
- [Short-selling trader](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Short%20Selling%20IB%20Trading.py): `Short Selling IB Trading.py`

### Trading and feeds

- [IEX market stream](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Stream%20IEX%20Market%20Data.py): `Stream IEX Market Data.py`
- [Sector rotation trader](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/US%20Sector%20Rotational%20IB%20Trading.py): `US Sector Rotational IB Trading.py`
- [Speech transcription](https://github.com/cheukhin1024/financial-data-project-in-azure/blob/main/Bloomberg%20Speech%20to%20Text.py): `Bloomberg Speech to Text.py`

### Other components

- **Data users**
- **Tiingo API**
- **BreakoutPoint**
- **Interactive Brokers**

## Connections

- Data users → Azure Blob Storage: accesses data (evidence: `README.md`)
- Financial data engineering → Tiingo API: fetches prices (evidence: `Financial Data Engineering.py`)
- Financial data engineering → Delta Lake dataset: prepares data
- 1-minute ETL → Delta Lake dataset: loads bars
- 30-minute ETL → Delta Lake dataset: loads bars
- Delta Lake dataset → Azure Blob Storage: hosted in (evidence: `README.md`)
- Ticker lifecycle dates → Delta Lake dataset: supports history
- Delta maintenance → Delta Lake dataset: vacuums tables (evidence: `VACUUM FirstRate 30min delta tables.py`)
- Delta Lake dataset → Sector clustering: supplies prices (evidence: `README.md`)
- Delta Lake dataset → Distributed clustering: supplies prices (evidence: `README.md`)
- Delta Lake dataset → Pair trading research: supplies prices (evidence: `README.md`)
- HRP optimization → Tiingo API: downloads prices
- Rotation backtest → Delta Lake dataset: uses history
- Short-report scraping → BreakoutPoint: scrapes reports (evidence: `Web Scraping from BreakoutPoint.py`)
- Short-selling trader → BreakoutPoint: fetches signals (evidence: `Short Selling IB Trading.py`)
- Short-selling trader → Interactive Brokers: places trades
- Short-selling backtest → Interactive Brokers: requests history (evidence: `Backtest Short Selling.py`)
- IEX market stream → Tiingo API: opens stream (evidence: `Stream IEX Market Data.py`)
- Sector rotation trader → Interactive Brokers: requests bars (evidence: `US Sector Rotational IB Trading.py`)
- Data and analysis utilities → Delta Lake dataset: transforms frames
