Skip to main content

Module market_hours

Module market_hours 

Source
Expand description

Interpret Schwab /markets hours responses for session-aware open/closed checks.

Structs§

ResolvedMarketStatus
Resolved EQO regular-session status (never “unknown”).

Enums§

MarketStatusSource
Where the displayed market status came from.

Functions§

eqo_regular_session_estimate
Weekday EQO regular hours in US Eastern (9:30–16:00). Does not model exchange holidays.
eqo_regular_session_open
Whether equity options (EQO) are in regular session right now.
option_market_open_from_hours
Best-effort EQO regular-session open flag from a Schwab hours payload.
resolve_eqo_market_open
Resolve EQO status: live/cached Schwab hours → recent agent state → ET schedule estimate.