image

Schedulers and dashboards need to know if the session is pre-market, regular hours, or after hours before they pull quotes or fire alerts. Guessing from the clock alone misses holidays and early closes.

One Mboum market-info request returns the current U.S. session state, countdown timers, and the clock times around the open and close so you can gate the rest of your market jobs.

👉 To access this endpoint, you must obtain an API key: https://mboum.com/pages/api


The Market Info Endpoint

Market session status lives under GET /v2/markets/market-info. The documented request has no query parameters.

Documentation:
https://docs.mboum.com/#stocks-options-GETapi-v2-markets-market-info

Request

GET https://api.mboum.com/v2/markets/market-info
Authorization: Bearer YOUR_API_KEY

Parameters

None. Call the path with your API key only.


Python Example

import requests

url = "https://api.mboum.com/v2/markets/market-info"
headers = {"Authorization": "Bearer YOUR_API_KEY"}

response = requests.get(url, headers=headers)
response.raise_for_status()
body = response.json().get("body", {})
print(body.get("mrktStatus"), body.get("mrktCountDown"))

Understanding the Response

The JSON body describes the U.S. session. Fields include:

  • country
  • marketIndicator
  • uiMarketIndicator
  • marketCountDown
  • preMarketOpeningTime
  • preMarketClosingTime
  • marketOpeningTime
  • marketClosingTime
  • afterHoursMarketOpeningTime
  • afterHoursMarketClosingTime
  • previousTradeDate
  • nextTradeDate
  • isBusinessDay
  • mrktStatus
  • mrktCountDown

Practical Use Cases

Use market-info to pause quote polls outside regular hours, show a pre-market or after-hours badge in a dashboard, or schedule jobs against the next trade date instead of a hard-coded weekday calendar.

👉 Get your API key and check the session: https://mboum.com/pages/api

How to Get a Ticker Market Summary with the Mboum API Sep 25, 2026

How to Get a Ticker Market Summary with the Mboum API

Pull exchange, sector, market cap, P/E, EPS, and dividend fields for any symbol using the Mboum v2 ticker-summary endpoint.

How to Search Stock Tickers Using the Mboum API Sep 25, 2026

How to Search Stock Tickers Using the Mboum API

Resolve company names and partial symbols to exchange tickers with the Mboum search endpoint. Includes Python examples and the fields each match returns.

How to Track Dividends, Splits, and IPOs Using the Mboum API Jan 14, 2026

How to Track Dividends, Splits, and IPOs Using the Mboum API

Learn how to programmatically track Dividends, Stock Splits, and IPOs using the Mboum API. A comprehensive guide for developers building financial applications.

How to Fetch Earnings Calendar Data for the Next 7 Days via Mboum API Jan 14, 2026

How to Fetch Earnings Calendar Data for the Next 7 Days via Mboum API

Learn to programmatically fetch earnings calendar data for the next 7 days using the Mboum API. This technical guide covers Python implementation, dynamic date filtering, and JSON response parsing for...