Skip to content

Commit

Permalink
CAL: add INR: Mumbai to calendars (#659)
Browse files Browse the repository at this point in the history
Co-authored-by: JHM Darbyshire (win11) <[email protected]>
  • Loading branch information
attack68 and attack68 authored Jan 27, 2025
1 parent fd77c1f commit 2e4c9a2
Show file tree
Hide file tree
Showing 17 changed files with 3,385 additions and 9 deletions.
3 changes: 3 additions & 0 deletions docs/source/i_whatsnew.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ objects now have specific methods to allow *updates*.
:meth:`~rateslib.curves.Curve.update_node` to allow mutating *Curve* types directly
with appropriate cache and state management.
(`584 <https://github.com/attack68/rateslib/pull/584>`_)
* - Calendars
- Add *"mum"* (INR: Mumbai) to list of default calendars.
(`584 <https://github.com/attack68/rateslib/pull/584>`_)
* - Bug
- Defaults spec *"usd_stir1"* for CME 1m SOFR futures, and *"eur_stir1"* for ICE 1m ESTR
futures has corrected the
Expand Down
1 change: 1 addition & 0 deletions docs/source/spec/calendars.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ Calendars
calendars/jpy_tyo.rst
calendars/aud_syd.rst
calendars/nzd_wlg.rst
calendars/inr_mum.rst
25 changes: 25 additions & 0 deletions docs/source/spec/calendars/inr_mum.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.. _spec-inr-mum:

*************
MUM Calendar
*************

Mumbai business days defined only by the following (ad hoc union government declared
days not yet included):

- Republic Day
- Good Friday
- Ambedkar Jayanti
- May Day
- Independence Day
- Gandhi Jayanti
- Christmas Day

.. ipython:: python
:suppress:
from rateslib import *
.. ipython:: python
get_calendar("mum").holidays
14 changes: 14 additions & 0 deletions docs/source/u_defaults.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,20 @@ a host of arguments will be pre-populated. The table below outlines all of the e
-
-
-
* - INR
- :ref:`mum <spec-inr-mum>`
-
-
-
-
-
-
-
-
-
-
-


**Securities**

Expand Down
1 change: 1 addition & 0 deletions python/rateslib/calendars/rs.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def get_calendar(
- *"tyo"*: Tokyo for Japan's TONA.
- *"syd"*: Sydney for Australia's AONIA.
- *"wlg"*: Wellington for New Zealand's OCR and BKBM.
- *"mum"*: Mumbai for India's FBIL o/n rate.
Combined calendars can be created with comma separated input, e.g. *"tgt,nyc"*. This would
be the typical calendar assigned to a cross-currency derivative such as a EUR/USD
Expand Down
Loading

0 comments on commit 2e4c9a2

Please sign in to comment.