Endpoints
Use it for your project, automation or website
Power your trading scripts, home automation, home-assistant or personal project with the simple endpoint to get the info about almost any global exchange trading hours. Free personal usage for up to 1000 calls/month per IP. If you need more, you can request individual subscriptions.
GET
Is Market Open Now
URL:
https://api.is-market-open.info/v1/now
Check if a given exchange is open now or for specific time.
The date parameter is optional. If no date-time is given as date, “now” will be used to check current time against exchange trading hours. All date and times are UTC.
Required parameters: ex
(exchange)
Optional Parameters: date
Example call:
https://api.is-market-open.info/v1/now?ex=NYSE
Example response
{
"exchange": "NYSE",
"isOpen": true,
"opensIn_countdown": 0,
"closesIn_countdown": "04:18:09",
"openAt_UTC": 0,
"closeAt_UTC": "2024-01-05 21:00:00+00:00",
"market_timezone": "America/New_York",
"checkDateUTC": "2024-01-05T16:41:50.984461+00:00"
}
GET
Is Market Open Day
URL:
https://api.is-market-open.info/v1/onday
Check if a given exchange will open at a given day. Or today is used of no day is given.
Required parameters: ex
(exchange)
Optional Parameters: date
Example call:
https://api.is-market-open.info/v1/onday?ex=NYSE&date=2024-01-01
Example response
{
exchange:"NYSE"
hasOpen:false
checkDateUTC:"2024-01-01"
market_timezone:"America/New_York"
}
For exchange, use the international exchange id.
Examples:
- New York Stock Exchange: XNYS, NYSE
- CBOE Futures: XCBF
- Chicago Mercantile Exchange: CMES
- CME Futures: CME_Equity
- Crypto / CME Globex Crypto: CME Globex Crypto
- London Stock Exchange: XLON
- Frankfurt Stock Exchange: XFRA
- Hong Kong Stock Exchange: XHKG