From 50e8b3464f37c6c67152dbf2dd23ff271d1b7184 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 17 Dec 2021 13:37:14 -0500 Subject: [PATCH] Can't serialize a `set` on `msgpack` codec --- piker/clearing/_paper_engine.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/piker/clearing/_paper_engine.py b/piker/clearing/_paper_engine.py index 892087c4..698a928f 100644 --- a/piker/clearing/_paper_engine.py +++ b/piker/clearing/_paper_engine.py @@ -389,7 +389,7 @@ async def handle_order_requests( account = request_msg['account'] if account != 'paper': log.error( - 'This is a paper account, only a `paper` selection is valid' + 'On a paper account, only a `paper` selection is valid' ) await ems_order_stream.send(BrokerdError( oid=request_msg['oid'], @@ -450,6 +450,7 @@ async def trades_dialogue( loglevel: str = None, ) -> None: + tractor.log.get_console_log(loglevel) async with ( @@ -462,8 +463,7 @@ async def trades_dialogue( ): # TODO: load paper positions per broker from .toml config file # and pass as symbol to position data mapping: ``dict[str, dict]`` - # await ctx.started(all_positions) - await ctx.started(({}, {'paper',})) + await ctx.started(({}, ['paper'])) async with ( ctx.open_stream() as ems_stream,