Hack client check for `ib` using flag

ib_checker_hackz
Tyler Goodlet 2022-06-06 16:28:08 -04:00
parent d641f77a80
commit 6feef5f1d9
1 changed files with 5 additions and 0 deletions

View File

@ -1353,6 +1353,7 @@ async def open_client_proxy(
@acm @acm
async def get_client( async def get_client(
is_brokercheck: bool = False,
**kwargs, **kwargs,
) -> Client: ) -> Client:
@ -1361,6 +1362,10 @@ async def get_client(
a method proxy to it. a method proxy to it.
''' '''
if is_brokercheck:
yield Client
return
# TODO: the IPC via portal relay layer for when this current # TODO: the IPC via portal relay layer for when this current
# actor isn't in aio mode. # actor isn't in aio mode.
async with open_data_client() as proxy: async with open_data_client() as proxy: