Skip to content

Commit bb13e67

Browse files
committed
Print tags on orders in CLI tool
Signed-off-by: cwasicki <[email protected]>
1 parent 4108782 commit bb13e67

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/frequenz/client/electricity_trading/cli/etrading.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,8 @@ def print_order_header() -> None:
328328
"side,"
329329
"currency,"
330330
"price,"
331-
"state"
331+
"state,"
332+
"tag"
332333
)
333334
print(header)
334335

@@ -344,7 +345,6 @@ def print_order(order: OrderDetail) -> None:
344345
- order.execution_option
345346
- order.valid_until
346347
- order.payload
347-
- order.tag
348348
- state_detail.state_reason
349349
- state_detail.market_actor
350350
- open_quantity
@@ -367,6 +367,7 @@ def print_order(order: OrderDetail) -> None:
367367
order.order.price.currency,
368368
order.order.price.amount,
369369
order.state_detail.state,
370+
order.order.tag,
370371
]
371372
print(",".join(v.name if isinstance(v, Enum) else str(v) for v in values))
372373

0 commit comments

Comments
 (0)