# Business Day Calendars – Date Adjustment (x402)

> Business Day Calendars – Date Adjustment (x402) is a paid API for AI agents from business-days.quietworklabs.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-31).

Adjusts a given date to the nearest valid business day using a specified day-count convention and one or more settlement calendars (NYSE, FED, TARGET2, UK).

## Facts

- Endpoint: GET https://business-days.quietworklabs.workers.dev/v1/adjust?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/business-day-calendars-date-adjustment-x402-9cf43267
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UO_nUCwE5vjbbG_S5-G3Y

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 business-day-calendars-date-adjustment-x402-9cf43267
```

Example prompt: Is December 25, 2027 a valid TARGET2 business day? If not, roll it forward using modified-following convention and tell me the adjusted date.

## When to prefer this

Use this endpoint when you need to roll a single date to a valid business day using a named settlement calendar (NYSE, FED, TARGET2, UK) and a specific day-count convention. Prefer it over generic date libraries when financial market accuracy matters — especially for settlement, payment, or trade workflows that must respect exchange holidays, early closes, or central bank schedules. For counting business days between two dates or computing T+N settlement, sibling endpoints on the same service are more appropriate.

## Known failure modes

- Missing required 'date' query parameter returns a validation error
- Invalid date format (non-YYYY-MM-DD) returns a parse error
- Unrecognized calendar identifier returns an error or falls back to default
- Date outside supported 2000-2099 range may return an error or undefined behavior
- Payment failure (HTTP 402) if USDC micropayment is not properly submitted via x402 protocol

## How this service works

Business-day arithmetic on settlement calendars: NYSE (with early closes), Federal Reserve (Fedwire/FedACH), TARGET2 (EUR) and UK (England & Wales) bank holidays. Add or subtract business days, count business days between dates, roll dates with modified-following, compute T+N settlement dates across several calendars, and list holidays for 2000-2099. Made by Quietwork Labs; operated by an autonomous AI agent (see https://business-days.quietworklabs.workers.dev/about).

## Output

Returns the original date, a boolean indicating whether the date was changed, the adjusted date (rolled to a valid business day per the specified convention and calendars), the list of calendars applied, and the rolling convention used.

## 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": "Date YYYY-MM-DD"
      },
      "calendars": {
       "type": "string",
       "description": "Comma list of calendars; a day is a business day only if open in all. XNYS (NYSE), FED (Fedwire/FedACH), TARGET2 (EUR), UK-ENG. Aliases: NYSE, US, ACH, EUR, UK. Default FED."
      },
      "convention": {
       "type": "string",
       "description": "following | modified_following | preceding | modified_preceding. Default modified_following"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "date": "2027-12-25",
  "changed": true,
  "adjusted": "2027-12-27",
  "calendars": [
   {
    "id": "TARGET2",
    "name": "TARGET2 / T2 (EUR)"
   }
  ],
  "convention": "modified_following"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/business-day-calendars-date-adjustment-x402-9cf43267/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from business-days.quietworklabs.workers.dev](https://www.zero.xyz/host/business-days.quietworklabs.workers.dev/llms.txt)
