From 97b074365b4f95283675a478a4698d509e451aea Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 30 Aug 2022 11:48:49 -0400 Subject: [PATCH] Use rt buffer for close price pnl calcs --- piker/ui/_position.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/ui/_position.py b/piker/ui/_position.py index 9e4c5ff4..f7fc447f 100644 --- a/piker/ui/_position.py +++ b/piker/ui/_position.py @@ -372,7 +372,7 @@ class SettingsPane: if size: # last historical close price - last = feed.shm.array[-1][['close']][0] + last = feed.rt_shm.array[-1][['close']][0] pnl_value = copysign(1, size) * pnl( tracker.live_pp.ppu, last,