Skip to content

Commit

Permalink
Merge pull request #108 from AsyncAlgoTrading/cancel_callback
Browse files Browse the repository at this point in the history
fix bug with order cancel
  • Loading branch information
timkpaine committed Sep 28, 2020
2 parents 95e38f5 + 238db32 commit 81aa43a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aat/engine/dispatch/execution/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ async def cancelOrder(self, strategy, order: Order):

await exchange.cancelOrder(order)
self._pending_orders.pop(order.id, None)
await self._manager._onCanceled(strategy, order)
return order

# **********************
Expand Down

0 comments on commit 81aa43a

Please sign in to comment.