Market Data Ingestion Accelerator
Generic balancing-energy/market-data ingestion for open APIs (ENTSO-E-style): bronze->silver->gold with XML time-series flattening, revision dedup, and DQ checks. Secret-scoped API token. Ships a dependency-free ingestion library + offline tests. Fully generic Databricks Asset Bundle.
⚙ Try the Live Demo interactive
Expand a market-data Period/Point block into per-interval UTC rows — the accelerator's time-series flattening logic, live.
⚡ Open Series Flattener📋 What's Inside 18 files
- ✓ README.md
- ✓ LICENSE
- ✓ manifest.json
- ✓ databricks.yml
- ✓ resources/jobs.yml
- ✓ src/ingest/api_client.py
- ✓ src/ingest/realtime_ingest.py
- ✓ src/transform/bronze_to_silver.py
- ✓ src/transform/silver_to_gold.py
- ✓ src/quality/dq_checks.sql
- ✓ lib/market_api.py
- ✓ tests/test_market_api.py
- ✓ conftest.py
- ✓ guide/01_what-you-get.md
- ✓ guide/02_getting-started.md
- ✓ guide/03_architecture.md
- ✓ guide/04_support.md
- ✓ guides/market-ingestion-methodology.md
📁 File Structure 18 files
├── README.md
├── LICENSE
├── manifest.json
├── databricks.yml
├── resources/
│ ├── jobs.yml
├── src/
│ ├── ingest/
│ │ ├── api_client.py
│ │ ├── realtime_ingest.py
│ ├── transform/
│ │ ├── bronze_to_silver.py
│ │ ├── silver_to_gold.py
│ ├── quality/
│ │ ├── dq_checks.sql
├── lib/
│ ├── market_api.py
├── tests/
│ ├── test_market_api.py
├── conftest.py
├── guide/
│ ├── 01_what-you-get.md
│ ├── 02_getting-started.md
│ ├── 03_architecture.md
│ ├── 04_support.md
├── guides/
│ ├── market-ingestion-methodology.md
📖 Documentation Preview README excerpt
Market Data Ingestion Accelerator
A generic, deploy-ready ingestion pipeline for balancing-energy / market-data
**open APIs** (ENTSO-E Transparency Platform-style): bronze → silver → gold with
XML time-series flattening, revision de-duplication, and data-quality checks.
Fully generic and environment-agnostic: configure your bronze/silver/gold
catalogs, bidding-zone EIC codes, and API token (via a Databricks **secret
scope** — never hard-coded). No organization-specific dependencies.
What's inside
- **Databricks Asset Bundle** — a 30-minute realtime ingest → transform → DQ job.
- **A thin REST API client** (`src/ingest/api_client.py`) with request building
and secret-scoped auth.
- **Bronze→silver→gold transforms** — XML parse, point flattening, enrich, dedup.
- **Data-quality SQL** — freshness, null, and duplicate assertions per zone.
- **A dependency-free ingestion library** (`lib/market_api.py`): query-param
building, ISO-8601 resolution mapping, Period/Point flattening, exponential
backoff, and dedup — with an offline test suite (5 tests).
Quickstart
```bash
pip install pytest && pytest tests/ -v # validate parsing/dedup offline
databricks bundle deploy -t dev -p <profile>
```
Store your API token in a secret scope, set `bidding_zones` (EIC codes), and the
bronze/silver/gold catalogs.
License
MIT — see `LICENSE`.
... preview truncated, see full README in product download.