From 995851360d9b1875071a863faedcb82ea8680457 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 8 May 2018 15:40:24 -0400 Subject: [PATCH] Rx symbol data from daemon as first response --- piker/ui/watchlist.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/piker/ui/watchlist.py b/piker/ui/watchlist.py index a0944ffb..b94cc9fb 100644 --- a/piker/ui/watchlist.py +++ b/piker/ui/watchlist.py @@ -387,10 +387,9 @@ async def _async_main(name, client, tickers, brokermod, rate): This is started with cli command `piker watch`. ''' - # get initial symbol data - async with brokermod.get_client() as bclient: - # get long term data including last days close price - sd = await bclient.symbol_data(tickers) + # get initial symbol data (long term data including last days close price) + # TODO: need something better this this toy protocol + sd = await client.recv() async with trio.open_nursery() as nursery: # get first quotes response