{"uid":"cap_LcOC5fGlI1-mR7tpWuqfu","slug":"trading-time-api-market-countdown-e8bbde1a","name":"Trading Time API – Market Countdown","description":"Returns open/closed state and seconds until the next open and close for several stock exchanges and futures markets in one call.","url":"https://trading-time-api.onrender.com/v1/countdown?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":["markets"],"properties":{"at":{"type":"string","description":"Optional ISO 8601 time with offset, e.g. 2026-10-21T08:30:00Z. Default: now."},"markets":{"type":"string","description":"Comma-separated market codes: 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.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1Xwm6LNcdkjuCCl5TLACU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the open/closed state plus seconds until the next open and next close for multiple stock exchanges and futures markets in a single call.","exampleAgentPrompt":"Are the NYSE (XNYS) and NASDAQ (XNAS) open right now, and if not, how many seconds until each one opens?","exampleUseCases":[{"title":"Pre-trade market status check","prompt":"Before I place my equity trades, tell me whether NYSE and NASDAQ are currently open and how long until they close — or how long until they open if they're shut."},{"title":"Global market overlap monitoring","prompt":"I want to know which of London (XLON), Frankfurt (XETR), and New York (XNYS) are open right now and how many seconds remain until each one closes, so I can plan cross-market orders."},{"title":"Futures session readiness alert","prompt":"Is the CME equity futures market open right now, and if it's closed, how long until it opens next? I'm deciding whether to wait or enter a position."}],"resultDescription":"A JSON object containing, for each requested market code, the current open/closed state and the number of seconds until the next open event and the next close event. Covers major equity exchanges (NYSE, NASDAQ, LSE, Xetra, SIX, TSE, HKEX, SSE, ASX) and futures venues (CME Equity, Eurex Index).","failureModes":["Invalid or unsupported market code returns an error or omits that market from results","Malformed ISO 8601 timestamp in the 'at' parameter causes a 400 bad request","Network latency or Render.com cold-start delays may cause timeouts on first request","Requesting too many markets in one call could result in partial data if any code is unrecognized"],"whenToPreferThis":"Use this endpoint when you need real-time open/closed status and countdown timers for multiple global exchanges in a single request. It is ideal for pre-trade checks, automated trading workflows, and market overlap detection. Prefer it over manually checking exchange hours or using calendar-based solutions when you need live second-precision countdowns across equity and futures markets simultaneously.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:35:59.970Z","isFirstParty":false,"canonicalSlug":"trading-time-api-market-countdown-e8bbde1a"}