Is a date a trading day?
is_trading_dayCheck if any date is a trading day on NYSE, NASDAQ, LSE, XETRA, or GENERIC exchange by verifying it is not a weekend or exchange holiday.
Instructions
Return whether a given date is a trading day on an exchange (i.e. not a weekend and not an exchange holiday).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Date in YYYY-MM-DD format | |
| exchange | No | Exchange calendar to use (default NYSE). NASDAQ shares the NYSE calendar. | NYSE |