{"uid":"cap_UO_nUCwE5vjbbG_S5-G3Y","slug":"business-day-calendars-date-adjustment-x402-9cf43267","name":"Business Day Calendars – Date Adjustment (x402)","description":"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).","url":"https://business-days.quietworklabs.workers.dev/v1/adjust?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"],"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"}}}}},"responseSchema":{"type":"json","example":{"date":"2027-12-25","changed":true,"adjusted":"2027-12-27","calendars":[{"id":"TARGET2","name":"TARGET2 / T2 (EUR)"}],"convention":"modified_following"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Wl_lDDYMOkXqA5fCLAIAP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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).","exampleAgentPrompt":"Is December 25, 2027 a valid TARGET2 business day? If not, roll it forward using modified-following convention and tell me the adjusted date.","exampleUseCases":[{"title":"EUR bond settlement date adjustment","prompt":"I have a EUR bond settlement due on April 18, 2025 — that might be Good Friday. Roll it to the next valid TARGET2 business day using modified-following and tell me if the date changed."},{"title":"FedACH payment date rollover","prompt":"My ACH payment is scheduled for July 4, 2025. Adjust it to the nearest valid Federal Reserve business day using modified-following convention so it doesn't get rejected."},{"title":"Cross-calendar trade settlement validation","prompt":"I need to settle a trade on December 26, 2025, and both NYSE and FED need to be open. Roll the date using modified-preceding if it's not a valid business day for both calendars."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:34:46.678Z","isFirstParty":false,"canonicalSlug":"business-day-calendars-date-adjustment-x402-9cf43267"}