status
Get the US market session status, and the next open and close times.
Examples
from openbb import obb
# The current US market session status.
obb.nasdaq.markets.status(provider='nasdaq')
Parameters
- standard
- nasdaq
Returns
results: NasdaqMarketStatus
Serializable results.
provider: str | None
Provider name.
warnings: Optional[list[Warning_]]
List of warnings.
chart: Optional[Chart]
Chart object.
extra: dict[str, Any]
Extra info.
Data
- standard
- nasdaq
country: str | None
The market's country.
status: str | None
The session status - i.e., 'Open' or 'Closed'.
indicator: str | None
The status message displayed by Nasdaq.
countdown: str | None
Time remaining until the next session change.
is_business_day: bool | None
Whether the current day is a trading day.
previous_trade_date: date | None
The previous trading day.
next_trade_date: date | None
The next trading day.
pre_market_open: datetime | None
The pre-market session open, in US/Eastern time.
pre_market_close: datetime | None
The pre-market session close, in US/Eastern time.
market_open: datetime | None
The regular session open, in US/Eastern time.
market_close: datetime | None
The regular session close, in US/Eastern time.
after_hours_open: datetime | None
The after-hours session open, in US/Eastern time.
after_hours_close: datetime | None
The after-hours session close, in US/Eastern time.