Stock market hours API


OVERVIEW
We support many markets, and this endpoint tells you which ones are open and which ones are closed. It returns the current state of the US market and EURONEXT. It also returns days when the stock market is closed, such as New Year's Day or Christmas.

Check out our sectors performance endpoint to keep exploring our API!

Stock market hours API


OVERVIEW
We support many markets, and this endpoint tells you which ones are open and which ones are closed. It returns the current state of the US market and EURONEXT. It also returns days when the stock market is closed, such as New Year's Day or Christmas.

Check out our sectors performance endpoint to keep exploring our API!

Stock market hours

https://financialmodelingprep.com/api/v3/is-the-market-open?apikey=YOUR_API_KEY

curl https://financialmodelingprep.com/api/v3/is-the-market-open
{
  "stockExchangeName" : "New York Stock Exchange",
  "stockMarketHours" : {
    "openingHour" : "09:30 a.m. ET",
    "closingHour" : "04:00 p.m. ET"
  },
  "stockMarketHolidays" : [ {
    "year" : 2019,
    "New Years Day" : "2019-01-01",
    "Martin Luther King, Jr. Day" : "2019-01-21",
    "Washington's Birthday" : "2019-02-18",
    "Good Friday" : "2019-04-19",
    "Memorial Day" : "2019-05-27",
    "Independence Day" : "2019-07-04",
    "Labor Day" : "2019-09-02",
    "Thanksgiving Day" : "2019-11-28",
    "Christmas" : "2019-12-25"
  }, {
    "year" : 2020,
    "New Years Day" : "2020-01-02",
    "Martin Luther King, Jr. Day" : "2020-01-21",
    "Washington's Birthday" : "2020-02-18",
    "Good Friday" : "2020-04-12",
    "Memorial Day" : "2020-05-27",
    "Independence Day" : "2020-07-05",
    "Labor Day" : "2020-09-09",
    "Thanksgiving Day" : "2020-11-28",
    "Christmas" : "2020-12-27"
  }, {
    "year" : 2021,
    "New Years Day" : "2021-01-04",
    "Martin Luther King, Jr. Day" : "2021-01-21",
    "Washington's Birthday" : "2021-02-18",
    "Good Friday" : "2021-04-05",
    "Memorial Day" : "2021-06-03",
    "Independence Day" : "2021-07-08",
    "Labor Day" : "2021-09-09",
    "Thanksgiving Day" : "2021-11-28",
    "Christmas" : "2021-12-27"
  } ],
  "isTheStockMarketOpen" : false
}

STOCK_MARKET_HOURS_WITH JAVA


URL url = new URL("https://financialmodelingprep.com/api/v3/is-the-market-open?apikey=YOUR_API_KEY");

try (BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream(), "UTF-8"))) {
    for (String line; (line = reader.readLine()) != null;) {
    System.out.println(line);
  }
}
Resource List :