1717 create_order as run_create_order ,
1818)
1919from frequenz .client .electricity_trading .cli .etrading import (
20- list_gridpool_trades as run_list_gridpool_trades ,
20+ list_gridpool_orders as run_list_gridpool_orders ,
2121)
2222from frequenz .client .electricity_trading .cli .etrading import (
23- list_orders as run_list_orders ,
23+ list_gridpool_trades as run_list_gridpool_trades ,
2424)
2525from frequenz .client .electricity_trading .cli .etrading import (
26- list_trades as run_list_trades ,
26+ list_public_trades as run_list_public_trades ,
2727)
2828
2929TZ = ZoneInfo ("Europe/Berlin" )
@@ -48,9 +48,9 @@ def cli() -> None:
4848@click .option ("--url" , required = True , type = str )
4949@click .option ("--key" , required = True , type = str )
5050@click .option ("--start" , default = None , type = iso )
51- def receive_trades (url : str , key : str , * , start : datetime ) -> None :
52- """List and/or stream trades."""
53- asyncio .run (run_list_trades (url = url , key = key , delivery_start = start ))
51+ def receive_public_trades (url : str , key : str , * , start : datetime ) -> None :
52+ """List and/or stream public trades."""
53+ asyncio .run (run_list_public_trades (url = url , key = key , delivery_start = start ))
5454
5555
5656@cli .command ()
@@ -59,7 +59,7 @@ def receive_trades(url: str, key: str, *, start: datetime) -> None:
5959@click .option ("--gid" , required = True , type = int )
6060@click .option ("--start" , default = None , type = iso )
6161def receive_gridpool_trades (url : str , key : str , gid : int , * , start : datetime ) -> None :
62- """List and/or stream orders ."""
62+ """List and/or stream gridpool trades ."""
6363 asyncio .run (
6464 run_list_gridpool_trades (url = url , key = key , gid = gid , delivery_start = start )
6565 )
@@ -70,9 +70,11 @@ def receive_gridpool_trades(url: str, key: str, gid: int, *, start: datetime) ->
7070@click .option ("--key" , required = True , type = str )
7171@click .option ("--start" , default = None , type = iso )
7272@click .option ("--gid" , required = True , type = int )
73- def receive_orders (url : str , key : str , * , start : datetime , gid : int ) -> None :
74- """List and/or stream orders."""
75- asyncio .run (run_list_orders (url = url , key = key , delivery_start = start , gid = gid ))
73+ def receive_gridpool_orders (url : str , key : str , * , start : datetime , gid : int ) -> None :
74+ """List and/or stream gridpool orders."""
75+ asyncio .run (
76+ run_list_gridpool_orders (url = url , key = key , delivery_start = start , gid = gid )
77+ )
7678
7779
7880@cli .command ()
0 commit comments