Skip to content

Commit

Permalink
Merge pull request #144 from AsyncAlgoTrading/ibeventwait
Browse files Browse the repository at this point in the history
wait for event
  • Loading branch information
timkpaine committed Jan 21, 2021
2 parents 21fc1ff + dbd08d0 commit 1702be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aat/exchange/public/ib/ib.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ async def newOrder(self, order: AATOrder) -> bool:

# set event for later trigerring
self._order_received_map[id] = asyncio.Event()
await self._order_received_map[id] # type: ignore
await self._order_received_map[id].wait()

res = self._order_received_res[id]
del self._order_received_map[id]
Expand Down

0 comments on commit 1702be5

Please sign in to comment.