Skip to main content
The market infrastructure endpoints expose exchange-level data: which markets are available, whether they are currently open, their regular trading hours, and scheduled holidays. Use these to gate trading logic, display status indicators, or plan around market closures.

Endpoints

Exchanges

Endpoint: GET /stocks/markets Returns metadata for all exchanges available in the API. Each exchange is identified by its MIC code (Market Identifier Code, ISO 10383) — the global standard for identifying trading venues. Pass one or more comma-separated MIC codes via the mic parameter to filter results. Key fields When to use
  • Building a market selector UI that shows exchange names, timezones, and currencies
  • Converting market open/close times to the user’s local timezone using the timezone field
  • Determining which currency a stock is quoted in
Example

Market Status

Endpoint: GET /stocks/markets/status Returns the current open/closed status for one or more exchanges. The status accounts for scheduled holidays and half-days but does not factor in circuit breakers, trading halts, or unscheduled closures. Key fields When to use
  • Deciding whether to display a “Market Open” badge in your UI
  • Pausing data refresh loops when a market is closed
  • Showing a countdown to market open
Interpretation: A status: open response means the exchange is in a scheduled trading session. It does not guarantee that all individual stocks are actively trading — securities may be halted at the exchange or regulatory level. Circuit breakers and individual trading halts are not reflected in this endpoint. Example

Trading Hours & Holidays

Endpoints: GET /stocks/markets/hours · GET /stocks/markets/holidays /hours returns the regular trading session times for each exchange, including half-day schedules. /holidays returns planned market closures within a start/end date range (YYYY-MM-DD format). Both endpoints accept comma-separated mic codes to filter by exchange. Key fields — hours Key fields — holidays When to use
  • Rendering a market calendar for users
  • Scheduling jobs that should not run during market closures
  • Displaying upcoming holidays or early-close days in a trading platform
Example