{"slug":"agent-utils-threads-cron-workers-dev-v1-market-status-7fcb4d","title":"Use when an agent must know if a stock market is open at a time","host":"agent-utils.threads-cron.workers.dev","method":"POST","resource":"https://agent-utils.threads-cron.workers.dev/v1/market/status","category":"market","description":"Use when an agent must know if a stock market is open at a time: NYSE (XNYS), Nasdaq (XNAS), Tokyo Stock Exchange (XJPX). Regular trading hours only (no pre/after-hours): open, session (regular/lunch/closed), reason (weekend, holiday, early close), local time, next open/close. Built-in official cale","price_listed":0.003,"price_asked":0.003,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":375,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"at":"2026-11-27T13:00:00-05:00","market":"XNYS"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"at":{"description":"Optional ISO 8601 date-time with a time zone (e.g. 2026-11-27T13:00:00-05:00 or ...Z). Omit for now.","type":"string"},"market":{"description":"XNYS = NYSE, XNAS = Nasdaq, XJPX = Tokyo Stock Exchange (case-insensitive).","enum":["XNYS","XNAS","XJPX"],"type":"string"}},"required":["market"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"at":{"description":"The instant evaluated (UTC)","type":"string"},"calendarCheckedOn":{"description":"Date the calendar was checked against official pages","type":"string"},"localTime":{"description":"The instant in the market's local time with offset","type":"string"},"market":{"description":"Market identifier (MIC)","type":"string"},"marketName":{"type":"string"},"nextClose":{"description":"Next end of a regular session after 'at' (local time); null if beyond the calendar","type":["string","null"]},"nextOpen":{"description":"Next start of a regular session after 'at' (local time); null if beyond the calendar","type":["string","null"]},"note":{"description":"Scope of the result: regular trading hours only","type":"string"},"open":{"description":"true only during the regular trading session (not lunch; pre-market and after-hours are not reported)","type":"boolean"},"reason":{"description":"weekend, holiday:<name>, early_close (an early-close day), lunch_break, outside_hours, or null during a normal regular session","type":["string","null"]},"session":{"description":"regular = regular trading hours; lunch = Tokyo lunch break only; closed = any other time (including pre-market and after-hours)","enum":["regular","lunch","closed"],"type":"string"},"source":{"description":"Calendar source and check date","type":"string"},"timezone":{"description":"IANA time zone of the market","type":"string"}},"required":["market","marketName","open","session","reason","at","localTime","timezone","nextOpen","nextClose","source","calendarCheckedOn","note"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":424,"error":null},{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":386,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":375,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":377,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":32,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":33,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":38,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":35,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":384,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":40,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":450,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":36,"error":null}],"description_full":"Use when an agent must know if a stock market is open at a time: NYSE (XNYS), Nasdaq (XNAS), Tokyo Stock Exchange (XJPX). Regular trading hours only (no pre/after-hours): open, session (regular/lunch/closed), reason (weekend, holiday, early close), local time, next open/close. Built-in official calendars: XNYS 2026-28, XNAS 2026, XJPX 2026-27; other years get 400. No charge: 400, 405 other methods, 429; 502/503 not charged.","last_updated":"2026-11-16T13:05:02.716Z","schemes":["exact"]}