From 27749e90c360cfe51d09444138e64f167fdb7cf4 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 7 Nov 2022 09:17:25 -0500 Subject: [PATCH] Only log pos size errors for `ib` --- piker/brokers/ib/broker.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/piker/brokers/ib/broker.py b/piker/brokers/ib/broker.py index daf9a703..401ac71c 100644 --- a/piker/brokers/ib/broker.py +++ b/piker/brokers/ib/broker.py @@ -371,8 +371,8 @@ async def update_and_audit_msgs( else: entry = f'split_ratio = 1/{int(reverse_split_ratio)}' - raise ValueError( - # log.error( + # raise ValueError( + log.error( f'POSITION MISMATCH ib <-> piker ledger:\n' f'ib: {ibppmsg}\n' f'piker: {msg}\n' @@ -883,7 +883,7 @@ async def deliver_trade_events( # execdict.pop('acctNumber') fill_msg = BrokerdFill( - # should match the value returned from + # NOTE: should match the value returned from # `.submit_limit()` reqid=execu.orderId, time_ns=time.time_ns(), # cuz why not