Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!-- Here goes the main new features and examples or instructions on how to use them -->

Expand Down
11 changes: 6 additions & 5 deletions src/frequenz/client/electricity_trading/cli/etrading.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand All @@ -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))

Expand Down
Loading