Skip to content

Add Bombay Stock Exchange (BSE) via inheritance from NSE #3149

@pareshjoshij

Description

@pareshjoshij

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:

  1. Zero Code Duplication: We reuse the complex Hindu/Islamic holiday logic already written for NSE.
  2. 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"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions