From 16c04e11e41c0e619f8d58187a2e88d2343d9a3f Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 6 Feb 2022 12:21:11 -0500 Subject: [PATCH] Comment out nan-price assert previously for `ib` in ems clear tasks --- piker/clearing/_ems.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/piker/clearing/_ems.py b/piker/clearing/_ems.py index e1017f64..3756daf4 100644 --- a/piker/clearing/_ems.py +++ b/piker/clearing/_ems.py @@ -1020,7 +1020,11 @@ async def _emsd_main( book = _router.get_dark_book(broker) last = book.lasts[(broker, symbol)] = first_quote['last'] - assert not isnan(last) # ib is a cucker but we've fixed it in the backend + + # XXX: ib is a cucker but we've fixed avoiding receiving any + # `Nan`s in the backend during market hours (right?). this was + # here previously as a sanity check during market hours. + # assert not isnan(last) # open a stream with the brokerd backend for order # flow dialogue