The expiry check in `de82df72` rejected active contracts and let
expired ones through. History also picked EST for a missing zone,
but IB's session parser still read the empty field.
Deats,
- Compare `realExpirationDate` with today's date at the venue.
Keep the contract eligible through expiry day or when IB omits
the date.
- Share `DEFAULT_HISTORY_TZ` across history and closure checks.
In `iter_sessions()`, pass `tradingSessions()` a copy with the
fallback zone so the caller keeps the original broker record.
Tests cover,
- Past, current, future and missing expiries while New York and
UTC fall on different dates.
- Both UTC instants and local session hours for an empty zone,
plus the missing-session error and unmapped venue calendars.
(this patch was generated in some part by `Codex` using
`GPT-6` (`OpenAI`))