Skip to content

Commit

Permalink
This appears to have been fixed (API rejects it)
Browse files Browse the repository at this point in the history
  • Loading branch information
brndnmtthws committed Oct 31, 2024
1 parent 273d1fa commit d78b0aa
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions thetagang/portfolio_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -2374,15 +2374,6 @@ def adjust_prices(self) -> None:
)
order.lmtPrice = float(updated_price)

if contract.secType == "BAG":
# for some reason, these fields need to be cleared
# when modifying an existing BAG (combo) order
# in-place (janky)
order.algoStrategy = ""
order.algoParams = []
order.tif = ""
order.account = ""

# put the trade back from whence it came
self.trades[idx] = self.ib.placeOrder(contract, order)
console.print(
Expand Down

0 comments on commit d78b0aa

Please sign in to comment.