Skip to content

Commit 621341e

Browse files
Add Energy message for electricity trading markets
This energy type quantizes energy in MWh and is used for api that deal with electricity trading markets. Signed-off-by: Matthias Wende <[email protected]>
1 parent f3015af commit 621341e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
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)