Drop use of legacy `Symbol.broker_info` in display startup
parent
b6df83a0e9
commit
7be85a882b
|
@ -1221,7 +1221,6 @@ async def display_symbol_data(
|
||||||
|
|
||||||
# use expanded contract symbols passed back from feed layer.
|
# use expanded contract symbols passed back from feed layer.
|
||||||
fqsns = list(feed.flumes.keys())
|
fqsns = list(feed.flumes.keys())
|
||||||
|
|
||||||
# step_size_s = 1
|
# step_size_s = 1
|
||||||
# tf_key = tf_in_1s[step_size_s]
|
# tf_key = tf_in_1s[step_size_s]
|
||||||
godwidget.window.setWindowTitle(
|
godwidget.window.setWindowTitle(
|
||||||
|
@ -1288,7 +1287,6 @@ async def display_symbol_data(
|
||||||
hist_ohlcv: ShmArray = flume.hist_shm
|
hist_ohlcv: ShmArray = flume.hist_shm
|
||||||
|
|
||||||
symbol = flume.symbol
|
symbol = flume.symbol
|
||||||
brokername = symbol.broker
|
|
||||||
fqsn = symbol.fqsn
|
fqsn = symbol.fqsn
|
||||||
|
|
||||||
hist_chart = hist_linked.plot_ohlc_main(
|
hist_chart = hist_linked.plot_ohlc_main(
|
||||||
|
@ -1337,8 +1335,7 @@ async def display_symbol_data(
|
||||||
None | ChartPlotWidget
|
None | ChartPlotWidget
|
||||||
] = {}.fromkeys(feed.flumes)
|
] = {}.fromkeys(feed.flumes)
|
||||||
if (
|
if (
|
||||||
not symbol.broker_info[brokername].get('no_vlm', False)
|
has_vlm(ohlcv)
|
||||||
and has_vlm(ohlcv)
|
|
||||||
and vlm_chart is None
|
and vlm_chart is None
|
||||||
):
|
):
|
||||||
vlm_chart = vlm_charts[fqsn] = await ln.start(
|
vlm_chart = vlm_charts[fqsn] = await ln.start(
|
||||||
|
@ -1497,13 +1494,13 @@ async def display_symbol_data(
|
||||||
)
|
)
|
||||||
|
|
||||||
# boot order-mode
|
# boot order-mode
|
||||||
order_ctl_symbol: str = fqsns[0]
|
order_ctl_fqme: str = fqsns[0]
|
||||||
mode: OrderMode
|
mode: OrderMode
|
||||||
async with (
|
async with (
|
||||||
open_order_mode(
|
open_order_mode(
|
||||||
feed,
|
feed,
|
||||||
godwidget,
|
godwidget,
|
||||||
fqsns[0],
|
order_ctl_fqme,
|
||||||
order_mode_started,
|
order_mode_started,
|
||||||
loglevel=loglevel
|
loglevel=loglevel
|
||||||
) as mode
|
) as mode
|
||||||
|
@ -1511,7 +1508,7 @@ async def display_symbol_data(
|
||||||
|
|
||||||
rt_linked.mode = mode
|
rt_linked.mode = mode
|
||||||
|
|
||||||
rt_viz = rt_chart.get_viz(order_ctl_symbol)
|
rt_viz = rt_chart.get_viz(order_ctl_fqme)
|
||||||
rt_viz.plot.setFocus()
|
rt_viz.plot.setFocus()
|
||||||
|
|
||||||
# default view adjuments and sidepane alignment
|
# default view adjuments and sidepane alignment
|
||||||
|
|
Loading…
Reference in New Issue