diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index dd802cb7..ae6e26bb 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -10,10 +10,7 @@ ## New Features -* Add helper function to support creating quantities that conform to the API expectations. -* Add `receive-gridpool-trades` command to CLI tool. -* Add the `warn_on_overflow` option to the streaming receivers to allow ignoring overflow warnings -* Add the `max_size` option to the streaming receivers +* Print tags and filled (instead of open) quantity for gridpool orders in CLI tool. diff --git a/src/frequenz/client/electricity_trading/cli/etrading.py b/src/frequenz/client/electricity_trading/cli/etrading.py index 147686e1..99e5f61b 100644 --- a/src/frequenz/client/electricity_trading/cli/etrading.py +++ b/src/frequenz/client/electricity_trading/cli/etrading.py @@ -324,11 +324,12 @@ def print_order_header() -> None: "delivery_area_code_type," "order_type," "quantity_mw," - "open_quantity_mw," + "filled_quantity_mw," "side," "currency," "price," - "state" + "state," + "tag" ) print(header) @@ -344,10 +345,9 @@ def print_order(order: OrderDetail) -> None: - order.execution_option - order.valid_until - order.payload - - order.tag - state_detail.state_reason - state_detail.market_actor - - filled_quantity + - open_quantity Args: order: OrderDetail object @@ -362,11 +362,12 @@ def print_order(order: OrderDetail) -> None: order.order.delivery_area.code_type, order.order.type, order.order.quantity.mw, - order.open_quantity.mw, + order.filled_quantity.mw, order.order.side, order.order.price.currency, order.order.price.amount, order.state_detail.state, + order.order.tag, ] print(",".join(v.name if isinstance(v, Enum) else str(v) for v in values))