Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Expiry fixup is done in the Decoder, see #649
Browse files Browse the repository at this point in the history
  • Loading branch information
erdewit committed Oct 17, 2023
1 parent 7337c9a commit 1641952
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ib_insync/ib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1856,12 +1856,6 @@ async def qualifyContractsAsync(self, *contracts: Contract) \
f'Ambiguous contract: {contract}, '
f'possibles are {possibles}')
else:
c = detailsList[0].contract
expiry = c.lastTradeDateOrContractMonth
if expiry:
# remove time and timezone part as it will cause problems
expiry = expiry.split()[0]
c.lastTradeDateOrContractMonth = expiry
if contract.exchange == 'SMART':
# overwriting 'SMART' exchange can create invalid contract
c.exchange = contract.exchange
Expand Down

0 comments on commit 1641952

Please sign in to comment.