Temporarily disable error on pos size mismatch
parent
e7ec01b8e6
commit
6b34c9e866
|
@ -362,7 +362,7 @@ async def update_and_audit_msgs(
|
||||||
# if ib reports a lesser pp it's not as bad since we can
|
# 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
|
# presume we're at least not more in the shit then we
|
||||||
# thought.
|
# thought.
|
||||||
if diff:
|
if diff and pikersize:
|
||||||
reverse_split_ratio = pikersize / ibsize
|
reverse_split_ratio = pikersize / ibsize
|
||||||
split_ratio = 1/reverse_split_ratio
|
split_ratio = 1/reverse_split_ratio
|
||||||
|
|
||||||
|
@ -371,7 +371,8 @@ async def update_and_audit_msgs(
|
||||||
else:
|
else:
|
||||||
entry = f'split_ratio = 1/{int(reverse_split_ratio)}'
|
entry = f'split_ratio = 1/{int(reverse_split_ratio)}'
|
||||||
|
|
||||||
raise ValueError(
|
# raise ValueError(
|
||||||
|
log.error(
|
||||||
f'POSITION MISMATCH ib <-> piker ledger:\n'
|
f'POSITION MISMATCH ib <-> piker ledger:\n'
|
||||||
f'ib: {ibppmsg}\n'
|
f'ib: {ibppmsg}\n'
|
||||||
f'piker: {msg}\n'
|
f'piker: {msg}\n'
|
||||||
|
|
Loading…
Reference in New Issue