Pass in fqsn from chart UI components

offline_history_loading
Tyler Goodlet 2022-03-18 15:07:48 -04:00
parent 8195fae289
commit 82f2fa2d37
1 changed files with 9 additions and 11 deletions

View File

@ -260,9 +260,7 @@ async def graphics_update_loop(
# main loop
async for quotes in stream:
ds.quotes = quotes
quote_period = time.time() - last_quote
quote_rate = round(
1/quote_period, 1) if quote_period > 0 else float('inf')
@ -572,10 +570,10 @@ async def display_symbol_data(
# clear_on_next=True,
# group_key=loading_sym_key,
# )
fqsn = '.'.join((sym, provider))
async with open_feed(
provider,
[sym],
[fqsn],
loglevel=loglevel,
# limit to at least display's FPS
@ -586,10 +584,11 @@ async def display_symbol_data(
ohlcv: ShmArray = feed.shm
bars = ohlcv.array
symbol = feed.symbols[sym]
fqsn = symbol.front_fqsn()
# load in symbol's ohlc data
godwidget.window.setWindowTitle(
f'{symbol.key}@{symbol.brokers} '
f'{fqsn} '
f'tick:{symbol.tick_size} '
f'step:1s '
)
@ -674,8 +673,7 @@ async def display_symbol_data(
open_order_mode(
feed,
chart,
symbol,
provider,
fqsn,
order_mode_started
)
):