# Trading Time API – Market Countdown

> Trading Time API – Market Countdown is a paid API for AI agents from trading-time-api.onrender.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-19).

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.

## Facts

- Endpoint: GET https://trading-time-api.onrender.com/v1/countdown?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/trading-time-api-market-countdown-e8bbde1a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LcOC5fGlI1-mR7tpWuqfu

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability trading-time-api-market-countdown-e8bbde1a
```

Example prompt: Are the NYSE (XNYS) and NASDAQ (XNAS) open right now, and if not, how many seconds until each one opens?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Returns open/closed state and seconds until the next open and close for several stock exchanges and futures markets in one call.

## Output

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).

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/trading-time-api-market-countdown-e8bbde1a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from trading-time-api.onrender.com](https://www.zero.xyz/host/trading-time-api.onrender.com/llms.txt)
