Rx symbol data from daemon as first response

kivy_mainline_and_py3.8
Tyler Goodlet 2018-05-08 15:40:24 -04:00
parent fcaeeae618
commit 995851360d
1 changed files with 3 additions and 4 deletions

View File

@ -387,10 +387,9 @@ async def _async_main(name, client, tickers, brokermod, rate):
This is started with cli command `piker watch`. This is started with cli command `piker watch`.
''' '''
# get initial symbol data # get initial symbol data (long term data including last days close price)
async with brokermod.get_client() as bclient: # TODO: need something better this this toy protocol
# get long term data including last days close price sd = await client.recv()
sd = await bclient.symbol_data(tickers)
async with trio.open_nursery() as nursery: async with trio.open_nursery() as nursery:
# get first quotes response # get first quotes response