From 330161964737380a8481f2ce110f9f6acdb81cfa Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sat, 17 Sep 2022 14:14:24 -0400 Subject: [PATCH] Temporarily disable error on pos size mismatch --- piker/brokers/ib/broker.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/piker/brokers/ib/broker.py b/piker/brokers/ib/broker.py index f9dd91ea..cdd1f99a 100644 --- a/piker/brokers/ib/broker.py +++ b/piker/brokers/ib/broker.py @@ -362,7 +362,7 @@ async def update_and_audit_msgs( # if ib reports a lesser pp it's not as bad since we can # presume we're at least not more in the shit then we # thought. - if diff: + if diff and pikersize: reverse_split_ratio = pikersize / ibsize split_ratio = 1/reverse_split_ratio @@ -371,7 +371,8 @@ async def update_and_audit_msgs( else: entry = f'split_ratio = 1/{int(reverse_split_ratio)}' - raise ValueError( + # raise ValueError( + log.error( f'POSITION MISMATCH ib <-> piker ledger:\n' f'ib: {ibppmsg}\n' f'piker: {msg}\n'