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

Commit

Permalink
Set timeZoneId field for non-bonds too
Browse files Browse the repository at this point in the history
  • Loading branch information
erdewit committed Oct 2, 2023
1 parent 04f4c1e commit 7337c9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ib_insync/decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ def contractDetails(self, fields):
c.lastTradeDateOrContractMonth = times[0]
if len(times) > 1:
cd.lastTradeTime = times[1]
if len(times) > 2:
cd.timeZoneId = times[2]

cd.longName = cd.longName.encode().decode('unicode-escape')
self.parse(cd)
Expand Down

0 comments on commit 7337c9a

Please sign in to comment.