{"openapi":"3.1.0","info":{"title":"India Market Holidays API","description":"Pay-per-call NSE trading-holiday calendar and market open/closed checks. Powered by x402 — pay in USDC on Base, no account or API key needed.","version":"0.1.0","contact":{"name":"India Market Holidays API","email":"pankaj.kumar@antiersolutions.com"}},"paths":{"/holidays/calendars":{"get":{"summary":"List Calendars","description":"FREE discovery endpoint: which holiday calendars are supported.\n\nLets agents learn the supported set without paying to probe.","operationId":"list_calendars_holidays_calendars_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/holidays/nse":{"get":{"summary":"Nse Holidays","description":"Full list of NSE equities (CM segment) trading holidays for the covered years.","operationId":"nse_holidays_holidays_nse_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"402":{"description":"Payment Required — sign USDC payment on Base and retry with X-PAYMENT header"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005"},"protocols":[{"x402":{}}],"offers":[{"intent":"charge","method":"x402","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","description":"$0.005 USDC — NSE equities trading-holiday list","scheme":"exact","network":"eip155:8453","payTo":"0xF96d2A2BDEdaFa702104e2386Af78FbECE04CEB3"}]}}},"/holidays/is-trading-day/{date}":{"get":{"summary":"Is Trading Day","description":"Is the NSE equities market open on {date} (ISO YYYY-MM-DD)?\n\nReturns is_trading_day plus the reason it's closed (weekend or the named\nholiday). The single call every scheduling/settlement agent needs.","operationId":"is_trading_day_holidays_is_trading_day__date__get","parameters":[{"name":"date","in":"path","required":true,"schema":{"type":"string","title":"Date"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"Payment Required — sign USDC payment on Base and retry with X-PAYMENT header"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005"},"protocols":[{"x402":{}}],"offers":[{"intent":"charge","method":"x402","amount":"5000","currency":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","description":"$0.005 USDC — Market open/closed check for a date","scheme":"exact","network":"eip155:8453","payTo":"0xF96d2A2BDEdaFa702104e2386Af78FbECE04CEB3"}]}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/.well-known/x402.json":{"get":{"summary":"X402 Manifest","operationId":"x402_manifest__well_known_x402_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"x-guidance":"This API is monetised with the x402 protocol. Request a paid endpoint (/holidays/nse, /holidays/is-trading-day/{date}) to receive an HTTP 402 challenge with on-chain payment requirements (USDC on eip155:8453). Sign the payment from a wallet that is NOT the payTo address, then retry with the signed X-PAYMENT header. /holidays/calendars is free."}