From 3f138c1f48cd47f089451cbc15c60c3d437da9a1 Mon Sep 17 00:00:00 2001 From: camille-bouvy-frequenz Date: Wed, 11 Dec 2024 18:05:57 +0100 Subject: [PATCH 1/2] Export Client constants for external use Signed-off-by: camille-bouvy-frequenz --- .../client/electricity_trading/__init__.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/frequenz/client/electricity_trading/__init__.py b/src/frequenz/client/electricity_trading/__init__.py index 5479299a..fe86b8af 100644 --- a/src/frequenz/client/electricity_trading/__init__.py +++ b/src/frequenz/client/electricity_trading/__init__.py @@ -179,7 +179,14 @@ async def stream_trades(): """ -from ._client import Client +from ._client import ( + MAX_PRICE, + MIN_PRICE, + MIN_QUANTITY_MW, + PRECISION_DECIMAL_PRICE, + PRECISION_DECIMAL_QUANTITY, + Client, +) from ._types import ( Currency, DeliveryArea, @@ -231,4 +238,9 @@ async def stream_trades(): "StateReason", "Trade", "TradeState", + "MAX_PRICE", + "MIN_PRICE", + "MIN_QUANTITY_MW", + "PRECISION_DECIMAL_QUANTITY", + "PRECISION_DECIMAL_PRICE", ] From d54ce6b873253ff1ed6a5b4c9f655f6dfaadea68 Mon Sep 17 00:00:00 2001 From: camille-bouvy-frequenz Date: Wed, 11 Dec 2024 18:10:15 +0100 Subject: [PATCH 2/2] Update Release Notes Signed-off-by: camille-bouvy-frequenz --- RELEASE_NOTES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 6c0e4427..bc40e0e6 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -15,6 +15,7 @@ * Add more edge cases to the integration tests. * Add idiomatic string representations for `Power` and `Price` classes. * Add support for timeouts in the gRPC function calls +* Export Client constants for external use ## Bug Fixes