{"uid":"cap_nfgFhDM9VA2FaSWVpdfOU","slug":"market-hours-api-is-market-open-9de5512c","name":"Market Hours API – Is Market Open","description":"Returns whether a stock exchange or futures market is open at a given time, the session type (open, break, closed), and the next open and close times in UTC and local time.","url":"https://market-hours-api.onrender.com/v1/is-open?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["market"],"properties":{"at":{"type":"string","description":"Optional ISO 8601 time with offset, e.g. 2026-11-27T15:00:00Z. Default: now."},"market":{"type":"string","description":"Market code: XNYS, XNAS, XLON, XETR, XSWX, XTKS, XHKG, XSHG, XASX, CME_EQUITY, EUREX_INDEX"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AxWSWyJpzoE5zyu6EGuYh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns whether a specific stock exchange or futures market is currently open (or at a given time), the session type, and the next open/close times in UTC and local time.","exampleAgentPrompt":"Is the NYSE (XNYS) open right now, and if not, when does it next open?","exampleUseCases":[{"title":"Pre-trade check before placing order","prompt":"Before I submit this trade, can you check if NASDAQ (XNAS) is currently open for trading and what session it's in?"},{"title":"Algorithmic trading schedule trigger","prompt":"Is the CME equity futures market open at 2026-11-27T15:00:00Z? I need to know the session type and when it next opens or closes."},{"title":"Multi-market trading window comparison","prompt":"I'm about to run a cross-market strategy — can you check whether the London Stock Exchange (XLON) and Euronext (XETR) are both open right now?"}],"resultDescription":"Returns a JSON object indicating whether the specified market is open, the current session type (e.g. open, break, closed), and the next scheduled open and close times expressed in both UTC and the market's local timezone.","failureModes":["Missing required 'market' query parameter returns a validation error","Unrecognized market code returns an error or empty result","Malformed 'at' timestamp (non-ISO 8601) causes a parsing error","Service unavailable on Render cold start, returning 503 or timeout","Future dates beyond the exchange calendar data may return incomplete results"],"whenToPreferThis":"Use this endpoint when you need a quick real-time or point-in-time check on whether a specific exchange or futures market is open, what trading session is active, and when the next state change occurs. Prefer this over full calendar/schedule endpoints when you only need a binary open/closed answer plus immediate next transition times, not the full schedule of holidays or early closes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T12:31:00.426Z","isFirstParty":false,"canonicalSlug":"market-hours-api-is-market-open-9de5512c"}