Expand description
§entsoe-edi
Write an ESS 2.3 ScheduleMessage for bilateral electricity trades within one German control area (business type A02).
use entsoe_edi::{BilanzkreisId, ScheduleMessage, ScheduleQuantity, TradeSeries, delivery_window};
use time::macros::{date, datetime};
let day = date!(2026-03-29);
let window = delivery_window(day)?;
let slots = (window.end - window.start).whole_minutes() / 15;
assert_eq!(slots, 92);
let sender = BilanzkreisId::new("11XSUEDWESTSTRO8")?;
let schedule = ScheduleMessage {
id: "SpringTrade".into(),
revision: 1,
sender: sender.clone(),
receiver: "10XDE-EON-NETZ-C".parse()?,
area: "10YDE-EON------1".parse()?,
day,
created_at: datetime!(2026-03-28 12:00 UTC),
series: vec![TradeSeries {
id: "Sale".into(),
revision: 1,
delivering: sender,
receiving: "11XENERGIE2----H".parse()?,
quantities: vec![ScheduleQuantity::from_kw(3_500_043)?; slots as usize],
}],
};
assert!(schedule.to_xml()?.contains(r#"<Qty v="3500.043"/>"#));Provide one quantity per elapsed quarter-hour in the Berlin day, including explicit zeros. delivering is the ESS OutParty, and receiving is the InParty. A reverse flow has its own series. Only one direction can carry power in any quarter-hour.
The writer supports delivery intervals starting in UTC years 2000–2099, a continuous range qualified against the ESS core TimeIntervalType.
The caller supplies the receiver’s area, the complete set of series and their revision history. Preserve the message ID across revisions, retain accepted series and use the new message revision for changed or added series. to_xml() checks one complete snapshot before returning any bytes.
German TSOs, Prozessbeschreibung Fahrplananmeldung in Deutschland v4.6, Annex A.2.1 pp. 48–51, A.5.1–A.5.4 pp. 81–82 and Table F-1 pp. 98–100. ETSO, Scheduling System Implementation Guide v2r3, §§4.3.1, 4.4.1 and 4.7.2, pp. 36, 44 and 54. TSO publication · ETSO archive
Structs§
- Bilanzierungsgebiet
Id - Bilanzierungsgebiet-ID: a 16-character EIC code with object type
'Y'(Area). - Bilanzkreis
Id - Bilanzkreis-ID: a 16-character EIC code with object type
'X'(Party). - EicCode
- Energy Identification Code (EIC): 16-character code issued by ENTSO-E.
- Schedule
Message - One German ESS 2.3 schedule for trades inside a single control area (A02).
- Schedule
Quantity - An ESS interval quantity in whole kilowatts, displayed in megawatts.
- Trade
Series - Netted physical delivery from one Bilanzkreis to another within the same area.
Enums§
- Schedule
Error - Reason a nomination cannot be encoded as a German ESS 2.3 schedule.
Functions§
- delivery_
window - UTC boundaries of a Berlin delivery day whose UTC start year is 2000–2099, with an exclusive end.