From 978c59f5f076a0b121238eaa86c76ffeb12ffcb9 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 27 Mar 2023 12:19:09 -0400 Subject: [PATCH] `ib`: break up data vs. broker enabled modules --- piker/brokers/ib/__init__.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/piker/brokers/ib/__init__.py b/piker/brokers/ib/__init__.py index 48024dc8..80bc228f 100644 --- a/piker/brokers/ib/__init__.py +++ b/piker/brokers/ib/__init__.py @@ -35,7 +35,6 @@ from .feed import ( ) from .broker import ( trades_dialogue, - norm_trade_records, ) __all__ = [ @@ -46,14 +45,23 @@ __all__ = [ 'stream_quotes', ] - -# tractor RPC enable arg -__enable_modules__: list[str] = [ +_brokerd_mods: list[str] = [ 'api', - 'feed', 'broker', ] +_datad_mods: list[str] = [ + 'feed', +] + + +# tractor RPC enable arg +__enable_modules__: list[str] = ( + _brokerd_mods + + + _datad_mods +) + # passed to ``tractor.ActorNursery.start_actor()`` _spawn_kwargs = { 'infect_asyncio': True,