diff --git a/thetagang/portfolio_manager.py b/thetagang/portfolio_manager.py index 1fb40a2db..c898236c8 100644 --- a/thetagang/portfolio_manager.py +++ b/thetagang/portfolio_manager.py @@ -1299,7 +1299,15 @@ async def row_position_task(position: PortfolioItem) -> None: symbol = position.contract.symbol position.contract.exchange = self.get_order_exchange() - buy_ticker = await self.ibkr.get_ticker_for_contract(position.contract) + try: + buy_ticker = await self.ibkr.get_ticker_for_contract( + position.contract + ) + except RequiredFieldValidationError: + # Likely no market price available for this contract, + # possibly because there are no bids or asks. In this case, + # treat it as a $0.00 contract. + pass strike_limit = get_strike_limit(self.config, symbol, right) if right.startswith("C"):