From 87f816349227b1053741061ec24dfde825bb81e5 Mon Sep 17 00:00:00 2001 From: algorandpa Date: Thu, 9 Feb 2023 16:26:22 -0500 Subject: [PATCH] force change branch name --- piker/clearing/_paper_engine.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/piker/clearing/_paper_engine.py b/piker/clearing/_paper_engine.py index d530125f..ce25243f 100644 --- a/piker/clearing/_paper_engine.py +++ b/piker/clearing/_paper_engine.py @@ -557,14 +557,15 @@ async def trades_dialogue( ): - with open_pps(broker, 'paper-id') as table: + with open_pps(broker, 'piker-paper') as table: + log.warning(f'pp table: {table}') # save pps in local state _positions.update(table.pps) pp_msgs: list[BrokerdPosition] = [] pos: Position token: str # f'{symbol}.{self.broker}' - + log.warning(f'local _positions: {_positions}') for token, pos in _positions.items(): pp_msgs.append(BrokerdPosition( broker=broker, @@ -573,7 +574,7 @@ async def trades_dialogue( size=pos.size, avg_price=pos.ppu, )) - + log.warning(f'pp_msgs: {pp_msgs}') # TODO: load paper positions per broker from .toml config file # and pass as symbol to position data mapping: ``dict[str, dict]`` await ctx.started((