Skip to content

Commit

Permalink
Remove all stops when cover_all_shares
Browse files Browse the repository at this point in the history
  • Loading branch information
edtechre committed Apr 9, 2024
1 parent 6f1b376 commit 336d2a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pybroker/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,7 @@ def cover_all_shares(self):
if pos is None:
return
self.cover_shares = pos.shares
self._portfolio.remove_stops(pos)

def foreign(
self, symbol: str, col: Optional[str] = None
Expand Down

0 comments on commit 336d2a2

Please sign in to comment.