From 6feef5f1d93f5fef1e1941b2b1d9f7c01409b5ae Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 6 Jun 2022 16:28:08 -0400 Subject: [PATCH] Hack client check for `ib` using flag --- piker/brokers/ib.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/piker/brokers/ib.py b/piker/brokers/ib.py index 2fed7581..ab570c76 100644 --- a/piker/brokers/ib.py +++ b/piker/brokers/ib.py @@ -1353,6 +1353,7 @@ async def open_client_proxy( @acm async def get_client( + is_brokercheck: bool = False, **kwargs, ) -> Client: @@ -1361,6 +1362,10 @@ async def get_client( a method proxy to it. ''' + if is_brokercheck: + yield Client + return + # TODO: the IPC via portal relay layer for when this current # actor isn't in aio mode. async with open_data_client() as proxy: