Use `symbol_data()` in watclist UI
parent
19303cf0ad
commit
801b9f860b
|
@ -393,11 +393,11 @@ async def _async_main(name, tickers, brokermod, rate):
|
||||||
async with brokermod.get_client() as client:
|
async with brokermod.get_client() as client:
|
||||||
async with trio.open_nursery() as nursery:
|
async with trio.open_nursery() as nursery:
|
||||||
# get long term data including last days close price
|
# get long term data including last days close price
|
||||||
sd = await client.symbols(tickers)
|
sd = await client.symbol_data(tickers)
|
||||||
|
|
||||||
nursery.start_soon(
|
nursery.start_soon(
|
||||||
partial(poll_tickers, client, brokermod.quoter, tickers, queue,
|
partial(poll_tickers, client, brokermod.quoter, tickers, queue,
|
||||||
rate=rate)
|
rate=rate)
|
||||||
)
|
)
|
||||||
|
|
||||||
# get first quotes response
|
# get first quotes response
|
||||||
|
|
Loading…
Reference in New Issue