{"uid":"cap_IlWg8ZlMq8wN9J2yg5RpL","slug":"market-and-holiday-calendar-us-trading-days-between-dates-c7ab894a","name":"Market and Holiday Calendar – US Trading Days Between Dates","description":"Count US trading days between two dates (inclusive), with weekends and NYSE holidays removed and the holidays listed.","url":"https://market-calendar.x402tookit.com/trading-days-between?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":["from","to"],"properties":{"to":{"type":"string","description":"End date YYYY-MM-DD"},"from":{"type":"string","description":"Start date YYYY-MM-DD"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"to":{"type":["null","string"]},"asOf":{"type":["null","string"]},"from":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"holidays":{"type":["array","null"],"items":{"type":"object","properties":{"date":{"type":["null","string"]},"name":{"type":["null","string"]}}}},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"tradingDays":{"type":["null","number"]},"weekendDays":{"type":["null","number"]},"calendarDays":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zx6H5-B3ibd_cmzmBOC2d","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Counts the number of US stock market trading days between two dates (inclusive), excluding weekends and NYSE holidays, and lists the holidays encountered.","exampleAgentPrompt":"How many US stock market trading days are there between January 2, 2025 and March 31, 2025, and which NYSE holidays fall in that range?","exampleUseCases":[{"title":"Options expiration settlement window","prompt":"How many trading days are between February 14, 2025 and the third Friday of February 2025 — February 21 — so I can plan my options settlement schedule?"},{"title":"Quarterly performance period calculation","prompt":"Count the exact number of NYSE trading days in Q2 2025, from April 1 through June 30, and show me which market holidays are in that period."},{"title":"Bond trade settlement deadline","prompt":"My bond trade settled on March 3, 2025 — how many US trading days are there between March 3 and March 31, 2025, accounting for all NYSE holidays and weekends?"}],"resultDescription":"Returns a count of trading days, weekend days, and calendar days between the two input dates, along with a list of NYSE holidays (name and date) that fell within the range, and metadata fields such as source, disclaimer, and a degraded-data flag if the calendar data is incomplete.","failureModes":["Missing or malformed 'from' or 'to' query parameters returns an error","Dates in wrong format (not YYYY-MM-DD) cause a parsing failure","End date before start date may return zero or an error","Far-future dates may return degraded results if NYSE holiday schedule is not yet published","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need an exact count of US equity market trading days (NYSE) between two calendar dates, with weekends and official NYSE holidays already removed. Prefer it over generic business-day calculators when NYSE holiday accuracy matters — e.g. for options settlement, trade settlement windows, performance period reporting, or any financial calculation tied to market open days.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:13:41.252Z","isFirstParty":false,"canonicalSlug":"market-and-holiday-calendar-us-trading-days-between-dates-c7ab894a"}