We have introduced 2 new APIs to be used to determine the market status.

  • /v1/marketstatus/now Which gets the current market status

Example:

{
  "market": "open",
  "serverTime": "2018-07-19T08:51:07-04:00",
  "exchanges": {
    "nyse": "open",
    "nasdaq": "open",
    "otc": "extended-hours"
  }
}
  • /v1/marketstatus/upcoming Get the upcoming market holidays

Example:

[
  {
    "exchange": "NYSE",
    "name": "Thanksgiving Day",
    "status": "early-close",
    "date": "2018-11-23T00:00:00.000Z",
    "open": "2018-11-23T09:30:00.000Z",
    "close": "2018-11-23T13:00:00.000Z"
  }
]

See more on the Docs page: https://polygon.io/docs/#!/Stocks--Equities/get_v1_marketstatus_now