Use rt buffer for last price on nan in ems

history_view
Tyler Goodlet 2022-09-08 10:13:20 -04:00
parent addedc20f1
commit f9dc5637fa
1 changed files with 1 additions and 1 deletions
piker/clearing

View File

@ -1109,7 +1109,7 @@ async def process_client_order_cmds(
# sometimes the real-time feed hasn't come up # sometimes the real-time feed hasn't come up
# so just pull from the latest history. # so just pull from the latest history.
if isnan(last): if isnan(last):
last = feed.shm.array[-1]['close'] last = feed.rt_shm.array[-1]['close']
pred = mk_check(trigger_price, last, action) pred = mk_check(trigger_price, last, action)