# Trading Time API – DST Gap Weeks

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

Returns the calendar weeks in a given year when daylight-saving time shifts cause a one-hour difference in foreign market open times between a specified timezone pair (e.g. US-EU).

## Facts

- Endpoint: GET https://trading-time-api.onrender.com/v1/dst-gap?utm_source=zero.xyz
- Price: $0.012/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-dst-gap-weeks-d26cdd57
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aP80hxcFPrTRZkDYHdDpd

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-dst-gap-weeks-d26cdd57
```

Example prompt: Which weeks in 2025 will the European market open an hour earlier than usual for US traders, due to the US-EU daylight saving gap?

## When to prefer this

Use this endpoint when you need to proactively identify in advance which weeks of a year will have a DST-induced one-hour shift between a US and European (or Australian) timezone pair, rather than checking a single specific timestamp. Prefer this over the point-in-time DST gap check when building annual trading calendars, scheduling algorithms, or batch planning tools that need the full list of affected weeks upfront.

## Known failure modes

- Missing required 'year' query parameter returns a validation error
- Invalid or unsupported 'pair' value returns an error (only US-EU, US-UK, US-CH, EU-AU accepted)
- Non-numeric or out-of-range year value may return a 400 error
- Payment not provided or insufficient USDC balance triggers a 402 Payment Required response
- Service may be temporarily unavailable on Render's free tier (cold start latency or downtime)

## How this service works

Returns the weeks of a year in which the clock difference between the US and Europe (or other pairs) is shifted by daylight-saving changes, so foreign market opens move by one hour.

## Output

A list of calendar weeks in the specified year during which the daylight-saving time rules for the selected timezone pair (e.g. US-EU) diverge, causing foreign market open times to shift by one hour. Includes week identifiers and the nature of the shift.

## 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": [
      "year"
     ],
     "properties": {
      "pair": {
       "type": "string",
       "description": "Zone pair: US-EU, US-UK, US-CH or EU-AU. Default US-EU."
      },
      "year": {
       "type": "string",
       "description": "Calendar year, e.g. 2027"
      }
     }
    }
   },
   "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-dst-gap-weeks-d26cdd57/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)
