-
-
Notifications
You must be signed in to change notification settings - Fork 677
Add Bombay Stock Exchange (BSE) via inheritance from NSE #3149
Copy link
Copy link
Closed
Description
Hi Team,
I would like to add the Bombay Stock Exchange (BSE) to the financial holidays list.
Implementation Strategy
Since the BSE (Bombay Stock Exchange) and NSE (National Stock Exchange of India) share the exact same holiday calendar (regulated by SEBI), I have implemented this by inheriting from the existing NationalStockExchangeOfIndia class.
This approach ensures:
- Zero Code Duplication: We reuse the complex Hindu/Islamic holiday logic already written for NSE.
- Maintainability: Any future fixes to the Indian market holiday logic will automatically apply to both exchanges.
Code Example:
from holidays.financial.national_stock_exchange_of_india import (
NationalStockExchangeOfIndia,
)
class BombayStockExchange(NationalStockExchangeOfIndia):
market = "XBOM"Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels