Skip to content

price_pb2

frequenz.api.common.v1.market.price_pb2 ¤

Generated protocol buffer code.

Classes¤

frequenz.api.common.v1.market.price_pb2.Price ¤

Bases: Message

Represents a monetary price for electricity trading, including the amount and currency. The currency used should align with the delivery area's standard currency.

Validation Required

It's essential to ensure that the currency aligns with the standard currency of the associated delivery area. Failure to do so may result in the API service rejecting the request due to currency mismatches.

Relation to Delivery Area

The currency specified is intrinsically related to the delivery area for the contract. Make sure the chosen currency is compatible with the delivery area's currency standards.

Source code in frequenz/api/common/v1/market/price_pb2.py
  _globals['_PRICE']._serialized_end=433
  _globals['_PRICE_CURRENCY']._serialized_start=217
  _globals['_PRICE_CURRENCY']._serialized_end=433
# @@protoc_insertion_point(module_scope)
Attributes¤
amount: google.type.decimal_pb2.Decimal property ¤

The amount of the price.

currency: global___Price.Currency.ValueType instance-attribute ¤

The currency in which the price is denominated.

Classes¤
Currency ¤

Bases: _Currency

List of supported currencies.

Extensibility

New currencies can be added to this enum to support additional markets.