{"uid":"cap_XzLGGun1BGy5EuoShZgQp","slug":"2s-io-market-status-e411860a","name":"2s.io Market Status","description":"Is a stock exchange open right now? Pass exchange (default US); returns whether trading is open, the current session (pre-market, regular, post-market, or closed), whether today is a market holiday, the exchange timezone, and the server timestamp. Use it to gate time-sensitive logic to market hours. Data by Finnhub.","url":"https://2s.io/api/markets/status?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","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"required":[],"properties":{"exchange":{"type":"string","description":"Exchange code, e.g. US."}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0025","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-686Tzx_G9FtK0Hzeo1sz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns whether a stock exchange is currently open, the active trading session, holiday status, timezone, and server timestamp for a given exchange.","exampleAgentPrompt":"Is the US stock exchange open right now, and if not, what session or holiday is it currently in?","exampleUseCases":[{"title":"Verify market hours before trade execution","prompt":"Before I place this trade, check if the NYSE is actually open right now so we don't execute during off-hours."},{"title":"Monitor London exchange trading sessions","prompt":"I need to know if the London Stock Exchange is in regular trading hours right now, or if it's pre-market or post-market."},{"title":"Alert on market holidays for portfolio updates","prompt":"Check whether today is a market holiday in the US so I know if I should hold off on executing any portfolio rebalancing logic."}],"resultDescription":"Returns a JSON object with: whether trading is currently open (boolean), the current session label (pre-market, regular, post-market, or closed), a flag indicating if today is a market holiday, the exchange's timezone, and the server timestamp at time of the call.","failureModes":["Invalid exchange code returns an error or empty result","Finnhub upstream outage causes delayed or missing data","Ambiguous exchange codes may default to US market behavior","Rate limiting or payment failure (402) if usage quota is exceeded"],"whenToPreferThis":"Use this endpoint when you need a real-time, authoritative check of whether a specific stock exchange is currently in a tradeable session before executing time-sensitive logic. Prefer it over hardcoded schedule checks because it accounts for market holidays and session nuances like pre/post-market hours. Powered by Finnhub data, it's appropriate for lightweight polling in agentic trading workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T06:51:26.056Z","isFirstParty":false,"canonicalSlug":"2s-io-market-status-e411860a"}