diff --git a/piker/data/_sharedmem.py b/piker/data/_sharedmem.py index 8afa3214..2169e262 100644 --- a/piker/data/_sharedmem.py +++ b/piker/data/_sharedmem.py @@ -220,7 +220,7 @@ class ShmArray: self, length: int = 1, ) -> np.ndarray: - return self.array[-length] + return self.array[-length:] def push( self, diff --git a/piker/fsp/_volume.py b/piker/fsp/_volume.py index 8dd93d4f..12a12fb9 100644 --- a/piker/fsp/_volume.py +++ b/piker/fsp/_volume.py @@ -135,7 +135,7 @@ async def dolla_vlm( c, h, l, v = ohlcv.last()[ ['close', 'high', 'low', 'volume'] - ] + ][0] lvlm += price * size tina_lvlm = c+h+l/3 * v