{"slug":"date-math-datemath-workers-dev-v1-market-7b5348","title":"Date Math","host":"date-math.datemath.workers.dev","method":"POST","resource":"https://date-math.datemath.workers.dev/v1/market","category":"market","description":"Date Math: Stock exchange calendar for NYSE/Nasdaq, London (LSE) and Tokyo (JPX): is the market open now, today's session (early closes, lunch break), next open and close, holidays, previous/next trading day, and the trade settlement date (T+1/T+2). Use for trading agents, order timing and settlemen","price_listed":0.001,"price_asked":0.001,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":31,"reported_calls_30d":2,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"at":"2026-11-27T17:00:00Z","date":"2026-11-27","exchange":"NYSE"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"at":{"description":"Instant for the open/closed status: ISO 8601 with offset (default: now)","type":"string"},"date":{"example":"2026-11-07","pattern":"^\\d{4}-\\d{2}-\\d{2}$","type":"string"},"exchange":{"description":"XNYS or NYSE, XNAS or NASDAQ, XLON or LSE, XTKS or TSE/JPX","example":"NYSE","type":"string"},"list_year":{"description":"Also list that year's holidays and early closes","maximum":2050,"minimum":2000,"type":"integer"}},"required":["exchange"],"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":{"calendar":{"items":{"properties":{"close":{"type":"string"},"date":{"type":"string"},"name":{"type":"string"},"type":{"enum":["closed","early_close"],"type":"string"}},"required":["date","name","type"],"type":"object"},"type":["array","null"]},"date":{"type":"string"},"early_close":{"description":"Reason for an early close, if any","type":["string","null"]},"exchange":{"type":"string"},"holiday":{"type":["string","null"]},"is_trading_day":{"type":"boolean"},"name":{"type":"string"},"next_trading_day":{"type":"string"},"note":{"type":"string"},"previous_trading_day":{"type":"string"},"reason":{"enum":["weekend","holiday",null],"type":["string","null"]},"session":{"properties":{"break":{"properties":{"end":{"type":"string"},"start":{"type":"string"}},"required":["start","end"],"type":["object","null"]},"close":{"type":"string"},"close_utc":{"type":"string"},"open":{"type":"string"},"open_utc":{"type":"string"}},"required":["open","close","open_utc","close_utc","break"],"type":["object","null"]},"settlement":{"properties":{"cycle":{"type":"string"},"note":{"type":"string"},"settlement_date":{"type":"string"}},"required":["cycle","settlement_date","note"],"type":["object","null"]},"status":{"properties":{"at":{"type":"string"},"is_open":{"type":"boolean"},"local":{"type":"string"},"next_close":{"type":["string","null"]},"next_open":{"type":"string"},"phase":{"enum":["open","pre_open","break","after_close","closed_today"],"type":"string"}},"required":["at","local","is_open","phase","next_open","next_close"],"type":"object"},"timezone":{"type":"string"},"weekday":{"type":"string"}},"required":["exchange","name","timezone","date","weekday","is_trading_day","reason","holiday","early_close","session","previous_trading_day","next_trading_day","settlement","status","calendar","note"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":29,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":1313,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":1389,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":22,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":28,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":1242,"error":null},{"day":"2026-11-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":31,"error":null},{"day":"2026-11-19","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":30,"error":null},{"day":"2026-11-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":38,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":39,"error":null},{"day":"2026-11-16","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":32,"error":null},{"day":"2026-11-15","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":1299,"error":null},{"day":"2026-11-14","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":24,"error":null},{"day":"2026-11-13","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":30,"error":null},{"day":"2026-11-12","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":32,"error":null},{"day":"2026-11-11","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":1444,"error":null},{"day":"2026-11-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":1291,"error":null},{"day":"2026-11-09","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":1272,"error":null},{"day":"2026-11-08","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":42,"error":null}],"description_full":"Date Math: Stock exchange calendar for NYSE/Nasdaq, London (LSE) and Tokyo (JPX): is the market open now, today's session (early closes, lunch break), next open and close, holidays, previous/next trading day, and the trade settlement date (T+1/T+2). Use for trading agents, order timing and settlement.","last_updated":"2026-11-09T11:11:38.522Z","schemes":["exact"]}