US stock market (NYSE/Nasdaq) trading calendar
market_calendarIs the US stock market open on a date? Early close? Next/previous N trading days, trading-day counts between dates, or the full holiday + early-close list for a year (2000-2100). Computed from NYSE holiday rules incl. announced ad-hoc closures. (Paid tool: $0.005 USDC per call via x402 on eip155:8453, eip155:137.)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mode": "<mode>"
},
"name": "market_calendar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | YYYY-MM-DD end for count (inclusive) | |
| date | No | YYYY-MM-DD (status/next/previous) | |
| from | No | YYYY-MM-DD start for count (inclusive) | |
| mode | Yes | status | next | previous | count | holidays | |
| year | No | Year for holidays mode | |
| count | No | N trading days for next/previous (1-30) |