Port streaming test to new `data` module
parent
d102b82566
commit
eaa2a9b05d
|
@ -15,7 +15,7 @@ async def rx_price_quotes_from_brokerd(us_symbols):
|
||||||
# no brokerd actor found
|
# no brokerd actor found
|
||||||
portal = await nursery.start_actor(
|
portal = await nursery.start_actor(
|
||||||
'brokerd',
|
'brokerd',
|
||||||
rpc_module_paths=['piker.brokers.core'],
|
rpc_module_paths=['piker.brokers.data'],
|
||||||
statespace={
|
statespace={
|
||||||
'broker2tickersubs': {},
|
'broker2tickersubs': {},
|
||||||
'clients': {},
|
'clients': {},
|
||||||
|
@ -26,11 +26,11 @@ async def rx_price_quotes_from_brokerd(us_symbols):
|
||||||
# gotta expose in a broker agnostic way...
|
# gotta expose in a broker agnostic way...
|
||||||
# retrieve initial symbol data
|
# retrieve initial symbol data
|
||||||
# sd = await portal.run(
|
# sd = await portal.run(
|
||||||
# 'piker.brokers.core', 'symbol_data', symbols=us_symbols)
|
# 'piker.brokers.data', 'symbol_data', symbols=us_symbols)
|
||||||
# assert list(sd.keys()) == us_symbols
|
# assert list(sd.keys()) == us_symbols
|
||||||
|
|
||||||
gen = await portal.run(
|
gen = await portal.run(
|
||||||
'piker.brokers.core',
|
'piker.brokers.data',
|
||||||
'start_quote_stream',
|
'start_quote_stream',
|
||||||
broker='robinhood',
|
broker='robinhood',
|
||||||
tickers=us_symbols,
|
tickers=us_symbols,
|
||||||
|
|
Loading…
Reference in New Issue