Schedule icon
If icon
OutputValues icon
Get icon
Parallel icon
Download icon
Queries icon
Set icon
Log icon
Fail icon

Energy-Charts renewable share and price mart

Build a 15-minute Energy-Charts mart for two markets and fail when derived renewable share or residual load disagrees.

Categories
Data

Energy-Charts publishes 15-minute generation and day-ahead prices. No API key. This flow loads two markets, rebuilds renewable share and residual load in DuckDB, and fails when they disagree with the published series.

How it works

  1. morning_market_refresh (io.kestra.plugin.core.trigger.Schedule) runs at 07:10 Europe/Berlin and does not replay a missed run.
  2. inputs_ok (io.kestra.plugin.core.flow.If) checks distinct country codes, zones, and auto or YYYY-MM-DD dates.
  3. resolve_window (io.kestra.plugin.core.output.OutputValues) freezes the Berlin dates. auto ends two days before the run.
  4. previous_window (io.kestra.plugin.core.kv.Get) reads the last good window.
  5. fetch_markets (io.kestra.plugin.core.flow.Parallel) downloads generation and price for both markets.
  6. build_mart (io.kestra.plugin.jdbc.duckdb.Queries) counts hydro, biomass, solar, wind, and half of waste as renewable. Residual load is load minus wind and solar.
  7. quality_ok (io.kestra.plugin.core.flow.If) fails when a market is short or a gap exceeds tolerance. Otherwise remember_window stores the window and log_pass prints the rollup.

What you get

  • Quarter-hour Parquet of shares, residual load, and price, plus a daily energy CSV.
  • A failed run on a bad archive, and a KV marker only after the gate passes.

Who it's for

  • Analysts landing public generation and prices without an exchange account.

Why orchestrate this with Kestra

  • Parallel calls, retries, and DuckDB share one run, so a partial day does not move the marker. The schedule and Execute use the same inputs.

Prerequisites

  • Kestra 2.0 or later, the DuckDB plugin, and HTTPS to api.energy-charts.info. Prices are SMARD data under CC BY 4.0.

Secrets

  • None. The API is open. Do not paste a key into the flow.

Quick start

  1. Import the blueprint.
  2. Execute with Germany, France, auto dates, and waste fraction 0.5.
  3. Read the log and open intervals and daily_summary. The schedule waits for 07:10 Europe/Berlin.

How to extend

  • Retarget country 2. A missing offshore series counts as zero.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.