Beta — Data under validation. Values may contain errors.

ED.CAPTURE

Production-weighted average price (EUR/MWh) — capture price.

Capture price

Signature

ED.CAPTURE([tech], [date], [zone], [method], [tz])

Description

Capture price for a technology and date. The capture price is the production-weighted average wholesale price a technology earned over the period — different from the simple time-weighted average because high-output hours can coincide with low (solar) or high (peakers) prices.

Method 0 (default) = realized: dayahead × metered generation. Matches the figures published by industry reports (Aurora, AleaSoft, REE annual). Method 1 = PBF: dayahead × ex-ante OMIE schedule. Spain only, available before realized data because PBF schedules are published the day-ahead.

Parameters

NameTypeDefaultDescription
tech1-6 | string1 (solar_pv)Tech code or name (see table below). Capture is only computed for the 6 main techs — for solar_thermal use ED.GEN.RANGE × ED.OMIE.RANGE manually.
datedateDate. Omit for the latest.
zone"ES" | "PT""ES"MIBEL zone.
method0 | 10 (realized)0=realized (matches published figures), 1=PBF (ex-ante schedule, ES only).
tz0 | 1 | 2"madrid"Timezone interpretation.

Valid values for tech

CodeEnglish aliasDescription
1solar_pv, solar, pvSolar PV (uses gen_solar_pv as production weight).
2wind, eolicaOnshore wind.
3nuclearNuclear.
4hydro, hidraulicaReservoir + run-of-river hydro.
5combined_cycle, ccgt, gasCombined-cycle gas (CCGT).
6coal, carbonCoal-fired thermal.

The add-in accepts either the canonical Spanish code or the English alias — both are equivalent.

Returns

Number — price in EUR/MWh.

Examples

=ED.CAPTURE(1, "2025-07-01")Solar capture, realized
=ED.CAPTURE(2, "2025-07-01", , 1)Wind capture, PBF ex-ante
=ED.CAPTURE("nuclear", "2025-07-01")Nuclear capture (named tech)

Notes

  • PBF (method=1) is available the day before realized — useful for forward-looking analysis. Spain only.
  • Capture price = SUM(price × MWh) / SUM(MWh) over the chosen period.

Related functions