Right, zero sized "closed out" msgs are totally fine

lifo_pps_ib
Tyler Goodlet 2022-06-23 15:07:56 -04:00
parent 87f301500d
commit aec48a1dd5
1 changed files with 6 additions and 0 deletions

View File

@ -414,6 +414,12 @@ async def update_and_audit_msgs(
size=p.size,
avg_price=p.be_price,
)
if validate and p.size:
raise ValueError(
f'UNEXPECTED POSITION ib <-> piker ledger:\n'
f'piker: {msg}\n'
'YOU SHOULD FIGURE OUT WHY TF YOUR LEDGER IS OFF!?!?'
)
msgs.append(msg)
return msgs