From f9dc5637fa016a0896f1e08b8c6dbc216b245c23 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 8 Sep 2022 10:13:20 -0400 Subject: [PATCH] Use rt buffer for last price on nan in ems --- piker/clearing/_ems.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/clearing/_ems.py b/piker/clearing/_ems.py index 6a9025ff..045134bc 100644 --- a/piker/clearing/_ems.py +++ b/piker/clearing/_ems.py @@ -1109,7 +1109,7 @@ async def process_client_order_cmds( # sometimes the real-time feed hasn't come up # so just pull from the latest history. if isnan(last): - last = feed.shm.array[-1]['close'] + last = feed.rt_shm.array[-1]['close'] pred = mk_check(trigger_price, last, action)