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`.
'''
# 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