Explicitly subscribe for tickers at wl startup

kivy_mainline_and_py3.8
Tyler Goodlet 2018-05-16 20:33:44 -04:00
parent 186befc704
commit 84fadf7ac4
1 changed files with 2 additions and 0 deletions

View File

@ -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()