{"openapi":"3.1.0","info":{"title":"Exchange trading calendar (28 stock exchanges) + Public holidays and business days (247 countries)","version":"1.0.0","contact":{"name":"Stockwerk Studio","email":"stockwerkstudio@gmail.com"},"description":"Pay-per-call data APIs for AI agents, paid with x402 (USDC, network eip155:8453). No account, no API key.","x-guidance":"Call a paid endpoint with GET and query parameters. Without payment you get HTTP 402 with the x402 payment requirements; pay with an x402 client and repeat the request. Invalid input returns HTTP 400 before payment, and errors such as \"not found\" or a source outage are not charged. Endpoints: GET /v1/trading-day ($0.002); GET /v1/trading-calendar ($0.002); GET /v1/market-status ($0.002); GET /v1/public-holidays ($0.002); GET /v1/business-day ($0.002)."},"servers":[{"url":"https://handelskalender-api.pages.dev"}],"paths":{"/v1/trading-day":{"get":{"operationId":"tradingDay","summary":"Exchange Trading Calendar","description":"Use when an agent needs to know if a stock exchange trades on a given day (default today) before scheduling orders, reports or alerts. 28 exchanges incl. NYSE, Nasdaq, LSE, Xetra, Euronext, SIX, Tokyo, HKEX, Shanghai, ASX. Returns holiday name, hours in local time + UTC, half days, lunch breaks, pre/after-market (Nasdaq, Xetra), live status, next open/close, previous/next trading day. Official exchange calendars only; bad input: HTTP 400, no charge.","tags":["stock-exchange","trading-calendar","market-hours","holidays","nyse","xetra","vienna"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"protocols":[{"x402":{}}]},"parameters":[{"name":"exchange","in":"query","required":true,"description":"Exchange MIC code, e.g. XNYS (NYSE), XNAS (Nasdaq), XLON (London), XETR (Xetra), XPAR (Paris), XTKS (Tokyo), XHKG (Hong Kong). Common names also work (NYSE, Xetra, LSE). Free list: GET /v1/exchanges.","schema":{"type":"string"},"example":"XWBO"},{"name":"date","in":"query","required":false,"description":"Day as YYYY-MM-DD. Optional, default: today in the exchange's time zone.","schema":{"type":"string"},"example":"2026-10-26"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"},"example":{"exchange":{"mic":"XWBO","name":"Wiener Börse (Vienna Stock Exchange)","country":"AT","timezone":"Europe/Vienna"},"date":"2026-10-26","weekday":"Monday","isTradingDay":false,"reason":"holiday","holiday":"Nationalfeiertag","session":null,"hoursKnown":true,"extended":null,"isOpenNow":null,"status":null,"localTime":null,"nextOpen":null,"nextClose":null,"previousTradingDay":"2026-10-23","nextTradingDay":"2026-10-27","note":null,"hoursNote":null,"coverage":{"from":"2026-01-01","to":"2027-12-31"},"sources":["https://www.wienerborse.at/uploads/u/cms/files/handel/boersenfeiertage-2026-de.pdf"]}}}},"400":{"description":"Invalid input – returned before payment, nothing is charged"},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}}}},"/v1/trading-calendar":{"get":{"operationId":"tradingCalendar","summary":"Exchange Trading Calendar","description":"Use when an agent plans ahead and needs every closure of a stock exchange for a whole year: holiday names, half days, late openings, regular hours, count of trading days. 28 exchanges incl. NYSE, Nasdaq, LSE, Xetra, Euronext, SIX, Tokyo, HKEX, Shanghai, ASX. Official exchange calendars only; bad input or uncovered year: HTTP 400, no charge.","tags":["stock-exchange","trading-calendar","market-hours","holidays","nyse","xetra","vienna"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"protocols":[{"x402":{}}]},"parameters":[{"name":"exchange","in":"query","required":true,"description":"Exchange MIC code, e.g. XNYS (NYSE), XNAS (Nasdaq), XLON (London), XETR (Xetra), XPAR (Paris), XTKS (Tokyo), XHKG (Hong Kong). Common names also work (NYSE, Xetra, LSE). Free list: GET /v1/exchanges.","schema":{"type":"string"},"example":"XNYS"},{"name":"year","in":"query","required":false,"description":"Year, e.g. 2026. Optional, default: current year.","schema":{"type":"string"},"example":"2026"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"},"example":{"exchange":{"mic":"XNYS","name":"New York Stock Exchange","country":"US","timezone":"America/New_York"},"year":2026,"regularHours":{"open":"09:30","close":"16:00"},"hoursNote":null,"tradingDays":250,"closed":[{"date":"2026-01-01","weekday":"Thursday","name":"New Year's Day"}],"specialSessions":[{"date":"2026-11-27","weekday":"Friday","open":"09:30","close":"13:00","name":"Day after Thanksgiving"}],"coverage":{"from":"2026-01-01","to":"2028-12-31"},"sources":["https://www.nyse.com/markets/hours-calendars"]}}}},"400":{"description":"Invalid input – returned before payment, nothing is charged"},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}}}},"/v1/market-status":{"get":{"operationId":"marketStatus","summary":"Exchange Trading Calendar","description":"Use when an agent needs to know right now which stock exchanges are open: open, lunch break, pre-market, after-hours or closed (with holiday name), local time, exact next open and close in UTC. One call checks up to 28 exchanges (default all) incl. NYSE, Nasdaq, LSE, Xetra, Euronext, Tokyo, HKEX, Shanghai, ASX. Official exchange calendars only; unknown exchange: HTTP 400, no charge.","tags":["stock-exchange","market-status","market-hours","is-market-open","pre-market","after-hours"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"protocols":[{"x402":{}}]},"parameters":[{"name":"exchanges","in":"query","required":false,"description":"Comma-separated MIC codes or names, e.g. XNYS,XETR,XTKS. Optional, default: all exchanges.","schema":{"type":"string"},"example":"XNAS,XETR"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"},"example":{"checkedAt":"2026-10-08T15:45:00.000Z","exchanges":[{"mic":"XNAS","name":"Nasdaq Stock Market","timezone":"America/New_York","localDate":"2026-10-08","localTime":"11:45","status":"open","isTradingDay":true,"holiday":null,"nextOpen":"2026-10-09T13:30:00.000Z","nextClose":"2026-10-08T20:00:00.000Z"},{"mic":"XETR","name":"Xetra (Deutsche Börse, Frankfurt)","timezone":"Europe/Berlin","localDate":"2026-10-08","localTime":"17:45","status":"after-hours","isTradingDay":true,"holiday":null,"nextOpen":"2026-10-09T07:00:00.000Z","nextClose":"2026-10-09T15:30:00.000Z"}]}}}},"400":{"description":"Invalid input – returned before payment, nothing is charged"},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}}}},"/v1/public-holidays":{"get":{"operationId":"publicHolidays","summary":"Public Holidays & Business Days","description":"Use when an agent needs all public holidays of a country for a year (planning deliveries, payments, deadlines, staffing). 247 countries, 2026-2028, optional state/province (region=) for regional holidays. English and local names, weekend days of the country, moon-dependent dates flagged as estimated. Bad input: HTTP 400 before payment, no charge.","tags":["public-holidays","holidays","business-days","calendar","bank-holidays"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"protocols":[{"x402":{}}]},"parameters":[{"name":"country","in":"query","required":true,"description":"2-letter ISO country code, e.g. AT, DE, US, GB, FR, JP, IN, BR, AE. 247 countries; free list: GET /v1/holiday-countries.","schema":{"type":"string"},"example":"AT"},{"name":"year","in":"query","required":false,"description":"Year, e.g. 2027. Optional, default: current year. Covered: 2026-2028.","schema":{"type":"string"},"example":"2027"},{"name":"region","in":"query","required":false,"description":"Optional state/province for regional holidays, e.g. BY or DE-BY (Bavaria), CA (California), 9 (Vienna). Listed per country in GET /v1/holiday-countries.","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"},"example":{"country":{"code":"AT","name":"Austria","weekend":["Sat","Sun"]},"region":null,"year":2027,"count":13,"holidays":[{"date":"2027-01-01","weekday":"Friday","name":"New Year's Day","localName":"Neujahr","estimated":false,"scope":"national"},{"date":"2027-10-26","weekday":"Tuesday","name":"National Day","localName":"Nationalfeiertag","estimated":false,"scope":"national"}],"regions":[],"note":"Statutory public holidays. Dates marked estimated depend on moon sighting or a later official decision and can shift by a day. Regional holidays only with region=.","source":"Public holidays from statutory rules as encoded in python-holidays (MIT licence, github.com/vacanza/holidays), data built 2026-11-02."}}}},"400":{"description":"Invalid input – returned before payment, nothing is charged"},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}}}},"/v1/business-day":{"get":{"operationId":"businessDay","summary":"Public Holidays & Business Days","description":"Use when an agent must know if a date is a business day in a country, or compute a due date: weekend or holiday (with name), previous/next business day, date plus N business days (add=), business days until a date (to=). 247 countries, 2026-2028, optional state/province (region=), local weekends (e.g. Fri-Sat). Bad input: HTTP 400, no charge.","tags":["business-days","working-days","public-holidays","due-date","calendar"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002"},"protocols":[{"x402":{}}]},"parameters":[{"name":"country","in":"query","required":true,"description":"2-letter ISO country code, e.g. AT, DE, US, GB, FR, JP, IN, BR, AE. 247 countries; free list: GET /v1/holiday-countries.","schema":{"type":"string"},"example":"DE"},{"name":"date","in":"query","required":false,"description":"Day as YYYY-MM-DD. Optional, default: today (UTC).","schema":{"type":"string"},"example":"2027-01-06"},{"name":"region","in":"query","required":false,"description":"Optional state/province for regional holidays, e.g. BY or DE-BY (Bavaria), CA (California), 9 (Vienna). Listed per country in GET /v1/holiday-countries.","schema":{"type":"string"},"example":"BY"},{"name":"add","in":"query","required":false,"description":"Optional: number of business days to add (negative = go back), -260 to 260.","schema":{"type":"string"},"example":"10"},{"name":"to","in":"query","required":false,"description":"Optional end date YYYY-MM-DD (>= date): count business days from date to it, both included.","schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"},"example":{"country":{"code":"DE","name":"Germany","weekend":["Sat","Sun"]},"region":"BY","date":"2027-01-06","weekday":"Wednesday","isBusinessDay":false,"reason":"holiday","holiday":{"date":"2027-01-06","weekday":"Wednesday","name":"Epiphany","localName":"Heilige Drei Könige","estimated":false,"scope":"regional"},"previousBusinessDay":"2027-01-05","nextBusinessDay":"2027-01-07","addBusinessDays":{"n":10,"date":"2027-01-20"},"businessDaysUntil":null,"note":"Statutory public holidays. Dates marked estimated depend on moon sighting or a later official decision and can shift by a day. Regional holidays only with region=.","source":"Public holidays from statutory rules as encoded in python-holidays (MIT licence, github.com/vacanza/holidays), data built 2026-11-02."}}}},"400":{"description":"Invalid input – returned before payment, nothing is charged"},"402":{"description":"Payment Required (x402 v2, USDC on Base)"}}}}}}