# Market and Holiday Calendar – Next Trading Day Calculator

> Market and Holiday Calendar – Next Trading Day Calculator is a paid API for AI agents from market-calendar.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Returns the US trading date that is N business days after or before a given date, skipping weekends and NYSE holidays, along with the start date's trading status.

## Facts

- Endpoint: GET https://market-calendar.x402tookit.com/next-trading-day?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/market-and-holiday-calendar-next-trading-day-calculator-73b8d059
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oY4vE-Z4XZ6C7q0BEo2BZ

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 market-and-holiday-calendar-next-trading-day-calculator-73b8d059
```

Example prompt: What's the US trading day that falls 2 trading days after July 3rd 2025, skipping any NYSE holidays or weekends?

## When to prefer this

Choose this endpoint when you need to calculate a specific future or past US trading date offset from a known start date — particularly for financial settlement (T+1, T+2, T+3), scheduling market-dependent events, or finding the next open trading day after a holiday. Prefer this over manual calendar math when NYSE holiday accuracy is required. Use sibling endpoints for counting trading days between two dates or checking if a specific date is a trading day.

## Known failure modes

- Missing required 'date' query parameter returns an error
- Date not in YYYY-MM-DD format causes a parse failure
- Days value outside -250 to 250 range is rejected
- Invalid date string (e.g. Feb 30) causes an error
- Network timeout or service degradation may return a 'degraded' flag in response

## How this service works

The date N US trading days after (or before) a given date, skipping weekends and NYSE holidays, with the starting day's status.

## Output

Returns a JSON object with: the computed result trading date, the start date provided, the number of trading days moved, the number of calendar days elapsed, whether the start date itself is a trading day, the name of any holiday on the start date, a human-readable summary, and a source/disclaimer field.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "date"
     ],
     "properties": {
      "date": {
       "type": "string",
       "description": "Start date YYYY-MM-DD"
      },
      "days": {
       "type": "integer",
       "description": "Trading days to move, -250 to 250 (default 1; negative goes back)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "days": {
       "type": [
        "null",
        "number"
       ]
      },
      "start": {
       "type": [
        "null",
        "string"
       ]
      },
      "result": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ]
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "startHoliday": {},
      "startIsTradingDay": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "calendarDaysElapsed": {
       "type": [
        "null",
        "number"
       ]
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/market-and-holiday-calendar-next-trading-day-calculator-73b8d059/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market-calendar.x402tookit.com](https://www.zero.xyz/host/market-calendar.x402tookit.com/llms.txt)
