ib_insync
ib_insync copied to clipboard
Check contract details has time zone ID
Contracts about to expire may not have tradingHours
, liquidHours
, and timeZoneId
set. This was causing an error when _parseSessions
is called:
Exception has occurred: ValueError
ZoneInfo keys must be normalized relative paths, got:
A simple way to avoid the error would be to check if the argument string is empty.