Skip to content

Commit

Permalink
Handle this failure gracefully
Browse files Browse the repository at this point in the history
I completely misunderstood the code in the previous attempt and messed
this up (in #524 and #525).
  • Loading branch information
brndnmtthws committed Dec 3, 2024
1 parent 417ffb0 commit 0f31dfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions thetagang/portfolio_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1301,6 +1301,7 @@ async def row_position_task(position: PortfolioItem) -> None:
position.contract.exchange = self.get_order_exchange()
buy_ticker = await self.ibkr.get_ticker_for_contract(
position.contract,
required_fields=[],
optional_fields=[TickerField.MIDPOINT, TickerField.MARKET_PRICE],
)

Expand Down

0 comments on commit 0f31dfb

Please sign in to comment.