Index
frequenz.client.common.grid ¤
Grid definitions for the energy market.
Classes¤
frequenz.client.common.grid.DeliveryArea
dataclass
¤
A geographical or administrative region where electricity deliveries occur.
DeliveryArea represents the geographical or administrative region, usually defined and maintained by a Transmission System Operator (TSO), where electricity deliveries for a contract occur.
The concept is important to energy trading as it delineates the agreed-upon delivery location. Delivery areas can have different codes based on the jurisdiction in which they operate.
Jurisdictional Differences
This is typically represented by specific codes according to local jurisdiction.
In Europe, this is represented by an EIC (Energy Identification Code). List of EICs.
Source code in src/frequenz/client/common/grid/_delivery_area.py
Attributes¤
code
instance-attribute
¤
code: str | None
The code representing the unique identifier for the delivery area.
code_type
instance-attribute
¤
code_type: EnergyMarketCodeType | int
Type of code used for identifying the delivery area itself.
This code could be extended in the future, in case an unknown code type is encountered, a plain integer value is used to represent it.
Functions¤
frequenz.client.common.grid.EnergyMarketCodeType ¤
Bases: Enum
The identification code types used in the energy market.
CodeType specifies the type of identification code used for uniquely identifying various entities such as delivery areas, market participants, and grid components within the energy market.
This enumeration aims to offer compatibility across different jurisdictional standards.
Understanding Code Types
Different regions or countries may have their own standards for uniquely identifying various entities within the energy market. For example, in Europe, the Energy Identification Code (EIC) is commonly used for this purpose.
Extensibility
New code types can be added to this enum to accommodate additional regional standards, enhancing the API's adaptability.
Validation Required
The chosen code type should correspond correctly with the code field in
the relevant message objects, such as DeliveryArea or Counterparty.
Failure to match the code type with the correct code could lead to
processing errors.
Source code in src/frequenz/client/common/grid/_delivery_area.py
Attributes¤
EUROPE_EIC
class-attribute
instance-attribute
¤
European Energy Identification Code Standard.
UNSPECIFIED
class-attribute
instance-attribute
¤
Unspecified type. This value is a placeholder and should not be used.
US_NERC
class-attribute
instance-attribute
¤
North American Electric Reliability Corporation identifiers.