# Stock Market Open Times API

> Stock Market Open Times checks if a global stock exchange is currently trading and provides its opening and closing times. Pass an exchange code like NYSE or LSE to get current open status (open, closed, weekend or holiday), the holiday name, official exchange name, and session hours. On paid plans, add schedule=true for the exchange's local time, half-day early closes, and the next open and close with a countdown in minutes.

**Endpoint:** `GET https://api.apiverve.com/v1/stockmarketopentimes`  
**Category:** Finance  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/stockmarketopentimes

## Overview

Stock Market Open Times evaluates the current moment in the exchange's own timezone against its regular session hours and a rule-based holiday calendar, so weekends, holidays and early-close half-days resolve for any year. On paid plans, schedule=true walks forward to the next trading session to report when the market next opens and closes, and how many minutes remain until the next change.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/stockmarketopentimes?exchange=nyse&schedule=true" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `exchange` | string | Yes | The stock exchange code (e.g., NYSE, LSE, NSE). ISO 10383 MIC codes such as XNYS, XNAS, XLON, XETR and XTKS, and aliases such as XETRA and NYSEARCA, are accepted and answered under the venue's own code. One of: NYSE, NASDAQ, BATS, CHX, PHLX, AMEX, ARCA, ISE, CBOE, LSE, FWB, TSE, HKEX, ASX, BSE, JSE, SSE, SZSE, SGX, EURONEXT, TSX, MOEX, SIX, BIST, JPX, KRX, IDX, SET, MYX, TWSE, HOSE, DFM, ADX, QSE, EGX, BCB, BVSP, BVC, BMV, KSE, TADAWUL, NSE, KOSDAQ, TSXV, STO, CPH, HEL, OSL, BIT, BME, WSE, NZX, XNYS, XNAS, XASE, ARCX, NYSEARCA, XCBO, XLON, XETR, XETRA, XFRA, XTKS, XJPX, XHKG, XASX, XBOM, XNSE, XJSE, XSHG, XSHE, XSES, XTSE, XTSX, XKRX, XKOS, XSWX, XIST, MISX, XPAR, XAMS, XBRU, XLIS, BVMF, B3, XMEX, XSAU, TAWUDAL, XTAI, XIDX, XBKK, XKLS, XSTC, XDFM, XADS, XCAI, XBUE, XBOG, XKUW, XSTO, XCSE, XHEL, XOSL, OSLO, XMIL, MIL, XMAD, XWAR, GPW, XNZE, OMX |
| `schedule` | boolean | No | Include local time, half-day early close, next open and close, and minutes until the next change. default false |

## Response fields

- `timezone` — string · Timezone of the stock exchange location · (premium)
- `exchange` — string · Stock exchange code or identifier
- `fullName` — string · Complete official name of the stock exchange
- `isOpen` — boolean · Whether the stock market is currently open
- `openingTime` — string · Market opening time in datetime format
- `closingTime` — string · Market closing time in datetime format
- `status` — string · Current trading status: open, closed, weekend or holiday
- `holidayName` — object · Name of today's holiday or early-close day, or null
- `localTime` — string · Current time at the exchange in datetime format (schedule=true) · (premium)
- `isHalfDay` — boolean · Whether today is an early-close half-day (schedule=true) · (premium)
- `earlyCloseTime` — object · Early closing time on a half-day in datetime format, otherwise null (schedule=true) · (premium)
- `nextChange` — string · Whether the next session change is an open or a close (schedule=true) · (premium)
- `nextOpen` — string · Next session open as an ISO 8601 time with the exchange's offset (schedule=true) · (premium)
- `nextClose` — string · Close of the current or next session as an ISO 8601 time with the exchange's offset (schedule=true) · (premium)
- `minutesUntilChange` — number · Minutes until the market next opens or closes (schedule=true) · (premium)
- `calendarVerified` — boolean · True when the holiday calendar is exchange-specific, false when it approximates from national holidays (schedule=true) · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "timezone": "America/New_York",
    "exchange": "NYSE",
    "fullName": "New York Stock Exchange",
    "isOpen": false,
    "openingTime": "2026-11-06 09:30:00",
    "closingTime": "2026-11-06 16:00:00",
    "status": "closed",
    "holidayName": null,
    "localTime": "2026-11-06 01:26:52",
    "isHalfDay": false,
    "earlyCloseTime": null,
    "nextChange": "open",
    "nextOpen": "2026-11-06T09:30:00-05:00",
    "nextClose": "2026-11-06T16:00:00-05:00",
    "minutesUntilChange": 484,
    "calendarVerified": true
  }
}
```

## Use cases

- **Order Execution Routing** — Brokerage systems verify whether a destination market is currently open before queuing or routing limit orders for immediate execution.
- **Portfolio Dashboard Badges** — Financial charting widgets display green or red market status indicators next to asset prices based on the exchange open flag.
- **Pre-Market Notification Triggers** — To alert day traders about upcoming sessions, mobile push services check scheduled opening times and send reminders fifteen minutes prior.
- **Cross-Border Arbitrage Bots** — Algorithmic trading scripts compare overlapping operational hours across international venues like the LSE and NYSE to coordinate hedged positions.

## SDKs

- **npm** — `npm install @apiverve/stockmarketopentimes` (https://www.npmjs.com/package/@apiverve/stockmarketopentimes)
- **PyPI** — `pip install apiverve-stockmarketopentimes` (https://pypi.org/project/apiverve-stockmarketopentimes/)
- **NuGet** — `dotnet add package APIVerve.API.StockMarketOpenTimes` (https://www.nuget.org/packages/APIVerve.API.StockMarketOpenTimes)
- **Source** — https://github.com/apiverve/stockmarketopentimes-api

## More

- Full reference: https://docs.apiverve.com/ref/stockmarketopentimes
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
