From 6dc6d00a9bd921812ba512ab14d9502f4ec90a11 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 11 Mar 2022 16:09:07 -0500 Subject: [PATCH] Try downsampling mkts data --- piker/data/marketstore.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/piker/data/marketstore.py b/piker/data/marketstore.py index a9a8e286..34de23ea 100644 --- a/piker/data/marketstore.py +++ b/piker/data/marketstore.py @@ -433,7 +433,13 @@ async def backfill_history_diff( raise MarketStoreError(err) # TODO: backfiller loop - # await tractor.breakpoint() + from piker.ui._compression import downsample + x, y = downsample( + s1['Epoch'], + s1['Close'], + bins=10, + ) + await tractor.breakpoint() async def ingest_quote_stream(