From 569674517fd1c17429ce51eaf8c0405cff65d6ea 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/api.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/piker/brokers/ib/api.py b/piker/brokers/ib/api.py index 5405ab27..d2fb00dc 100644 --- a/piker/brokers/ib/api.py +++ b/piker/brokers/ib/api.py @@ -1248,6 +1248,7 @@ async def open_client_proxy( @acm async def get_client( + is_brokercheck: bool = False, **kwargs, ) -> Client: @@ -1256,6 +1257,11 @@ async def get_client( a method proxy to it. ''' + # hack for `piker brokercheck ib`.. + if is_brokercheck: + yield Client + return + from .feed import open_data_client # TODO: the IPC via portal relay layer for when this current