diff --git a/ib_insync/ib.py b/ib_insync/ib.py index bf56cbc5..dbe53cde 100644 --- a/ib_insync/ib.py +++ b/ib_insync/ib.py @@ -1856,6 +1856,7 @@ async def qualifyContractsAsync(self, *contracts: Contract) \ f'Ambiguous contract: {contract}, ' f'possibles are {possibles}') else: + c = detailsList[0].contract if contract.exchange == 'SMART': # overwriting 'SMART' exchange can create invalid contract c.exchange = contract.exchange