File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
src/frequenz/client/electricity_trading/cli Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 1010
1111## New Features
1212
13- * Add helper function to support creating quantities that conform to the API expectations.
14- * Add ` receive-gridpool-trades ` command to CLI tool.
15- * Add the ` warn_on_overflow ` option to the streaming receivers to allow ignoring overflow warnings
16- * Add the ` max_size ` option to the streaming receivers
13+ * Print tags and filled (instead of open) quantity for gridpool orders in CLI tool.
1714
1815<!-- Here goes the main new features and examples or instructions on how to use them -->
1916
Original file line number Diff line number Diff line change @@ -324,11 +324,12 @@ def print_order_header() -> None:
324324 "delivery_area_code_type,"
325325 "order_type,"
326326 "quantity_mw,"
327- "open_quantity_mw ,"
327+ "filled_quantity_mw ,"
328328 "side,"
329329 "currency,"
330330 "price,"
331- "state"
331+ "state,"
332+ "tag"
332333 )
333334 print (header )
334335
@@ -344,10 +345,9 @@ 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
350- - filled_quantity
350+ - open_quantity
351351
352352 Args:
353353 order: OrderDetail object
@@ -362,11 +362,12 @@ def print_order(order: OrderDetail) -> None:
362362 order .order .delivery_area .code_type ,
363363 order .order .type ,
364364 order .order .quantity .mw ,
365- order .open_quantity .mw ,
365+ order .filled_quantity .mw ,
366366 order .order .side ,
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
You can’t perform that action at this time.
0 commit comments