From 84fadf7ac4ebcd0105ab2b14fec3f3c8b764a9ae Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 16 May 2018 20:33:44 -0400 Subject: [PATCH] Explicitly subscribe for tickers at wl startup --- piker/ui/watchlist.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/piker/ui/watchlist.py b/piker/ui/watchlist.py index b94cc9fb..07c720fd 100644 --- a/piker/ui/watchlist.py +++ b/piker/ui/watchlist.py @@ -387,6 +387,8 @@ async def _async_main(name, client, tickers, brokermod, rate): This is started with cli command `piker watch`. ''' + # subscribe for tickers + await client.send((brokermod.name, 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()