ib_insync icon indicating copy to clipboard operation
ib_insync copied to clipboard

Check contract details has time zone ID

Open djkelleher opened this issue 7 months ago • 0 comments

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.

djkelleher avatar Nov 26 '23 20:11 djkelleher