Drop use of `Symbol.brokers` everywhere

rekt_pps
Tyler Goodlet 2023-03-15 11:43:04 -04:00
parent 63304f535c
commit 56f736e7ca
3 changed files with 4 additions and 4 deletions

View File

@ -1635,7 +1635,7 @@ async def open_feed(
# apply `brokerd`-common steam to each flume # apply `brokerd`-common steam to each flume
# tracking a symbol from that provider. # tracking a symbol from that provider.
for fqsn, flume in feed.flumes.items(): for fqsn, flume in feed.flumes.items():
if brokermod.name in flume.symbol.brokers: if brokermod.name == flume.symbol.broker:
flume.stream = stream flume.stream = stream
assert len(feed.mods) == len(feed.portals) == len(feed.streams) assert len(feed.mods) == len(feed.portals) == len(feed.streams)

View File

@ -1288,7 +1288,7 @@ 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.brokers[0] brokername = symbol.broker
fqsn = symbol.fqsn fqsn = symbol.fqsn
hist_chart = hist_linked.plot_ohlc_main( hist_chart = hist_linked.plot_ohlc_main(

View File

@ -292,7 +292,7 @@ class OrderMode:
account=self.current_pp.alloc.account, account=self.current_pp.alloc.account,
size=0, size=0,
symbol=symbol, symbol=symbol,
brokers=symbol.brokers, brokers=[symbol.broker],
oid='', # filled in on submit oid='', # filled in on submit
exec_mode=trigger_type, # dark or live exec_mode=trigger_type, # dark or live
) )
@ -709,7 +709,7 @@ async def open_order_mode(
# load account names from ``brokers.toml`` # load account names from ``brokers.toml``
accounts_def = config.load_accounts( accounts_def = config.load_accounts(
providers=symbol.brokers providers=[symbol.broker],
) )
# XXX: ``brokerd`` delivers a set of account names that it # XXX: ``brokerd`` delivers a set of account names that it