Skip to content

Commit

Permalink
Import missing _accounts2clients table
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Jun 7, 2022
1 parent 5696745 commit 1345b25
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions piker/brokers/ib/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
BrokerdError,
)
from .api import (
_accounts2clients,
_adhoc_futes_set,
log,
get_config,
Expand Down Expand Up @@ -112,8 +113,6 @@ async def handle_order_requests(

) -> None:

global _accounts2clients

request_msg: dict
async for request_msg in ems_order_stream:
log.info(f'Received order request {request_msg}')
Expand Down Expand Up @@ -271,7 +270,6 @@ async def trades_dialogue(

accounts_def = config.load_accounts(['ib'])

global _accounts2clients
global _client_cache

# deliver positions to subscriber before anything else
Expand All @@ -283,7 +281,6 @@ async def trades_dialogue(
trio.open_nursery() as nurse,
open_client_proxies() as (proxies, aioclients),
):
# for account, client in _accounts2clients.items():
for account, proxy in proxies.items():

client = aioclients[account]
Expand Down

0 comments on commit 1345b25

Please sign in to comment.