piker/tests/providers
Gud Boi 70a6a9c024 Fix IB expiry dates and session timezone fallback
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`))
2026-11-29 19:58:43 -05:00
..
__init__.py Fix IB idle timer arithmetic for packet nanoseconds 2026-11-13 17:17:58 -05:00
test_history_reservations.py Use IB schedules to reserve missing SHM history 2026-11-13 17:30:24 -05:00
test_ib_schedule.py Fix IB expiry dates and session timezone fallback 2026-11-29 19:58:43 -05:00
test_ib_wrapper_timeout.py Fix IB idle timer arithmetic for packet nanoseconds 2026-11-13 17:17:58 -05:00