Skip to content

Commit bb99794

Browse files
Add Energy message for electricity trading markets (#161)
This energy type quantizes energy in MWh and is used for api that deal with electricity trading markets.
2 parents fa774d9 + b84734c commit bb99794

File tree

2 files changed

+28
-7
lines changed

2 files changed

+28
-7
lines changed

RELEASE_NOTES.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,16 @@
22

33
## Summary
44

5-
This release adds new features, and fixes the documentation of a few messages.
5+
<!-- Here goes a general summary of what this release is about -->
66

77
## Upgrading
88

9-
- This release does not contain breaking changes in terms of protobuf definitions.
10-
However, when upgrading, applications may need to be adjusted to work with the new additions.
9+
<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->
1110

1211
## New Features
1312

14-
- Adds ability to specify static bounds in the `Component` message.
15-
16-
- Adds protobuf definition necessary for Electricity Trading (and for Ancillary Services Market).
13+
- Add a energy message for electricity trading markets
1714

1815
## Bug Fixes
1916

20-
- Fixes `SensorData` and `ComponentData` doc examples to correctly reflect differences in respective values.
17+
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Frequenz definitions of energy for electricity trading.
2+
//
3+
// Copyright 2023 Frequenz Energy-as-a-Service GmbH
4+
//
5+
// Licensed under the MIT License (the "License");
6+
// you may not use this file except in compliance with the License.
7+
8+
syntax = "proto3";
9+
10+
package frequenz.api.common.v1.market;
11+
12+
import "google/type/decimal.proto";
13+
14+
// Represents a single unit of electricity.
15+
//
16+
// !!! note
17+
// In these trading orders, the unit of energy is denominated in MWh
18+
// (Megawatt-hours) as opposed to MW (Megawatts). MWh is a unit of energy
19+
// representing total output over a period, while MW is a unit of power that
20+
// represents the rate of energy production or consumption.
21+
message Energy {
22+
// Represents energy unit in Megawatthours (MWh).
23+
google.type.Decimal mwh = 1;
24+
}

0 commit comments

Comments
 (0)