Explicitly subscribe for tickers at wl startup
parent
186befc704
commit
84fadf7ac4
|
@ -387,6 +387,8 @@ 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`.
|
||||||
'''
|
'''
|
||||||
|
# subscribe for tickers
|
||||||
|
await client.send((brokermod.name, tickers))
|
||||||
# get initial symbol data (long term data including last days close price)
|
# get initial symbol data (long term data including last days close price)
|
||||||
# TODO: need something better this this toy protocol
|
# TODO: need something better this this toy protocol
|
||||||
sd = await client.recv()
|
sd = await client.recv()
|
||||||
|
|
Loading…
Reference in New Issue