yellowbean / Hastructure

ABS/MBS cashflow engine written in Haskell, with API to Python and C/Java (on the way)
https://deal-bench.xyz
Other
15 stars 4 forks source link

Expose Business Day in <DatePattern> #41

Open yellowbean opened 1 year ago

yellowbean commented 1 year ago

Deal Payment dates may scheduled by Business Day, like the 10th of business day of the month which requires the engine to infer the payment date of each month.

The challenge is the holiday calendars are not different across the countries.

Expected changes:

yellowbean commented 1 year ago

Option1 : using Haskell library

US Holiday -> https://github.com/tippenein/BankHoliday UK -> https://hackage.haskell.org/package/bank-holidays-england-0.2.0.9/docs/Data-Time-Calendar-BankHoliday-EnglandAndWales.html

yellowbean commented 1 year ago

Option2 : use external file

The other option will be using Python library to generate the holiday info of the year in a text file..

Hastructure will read the text file and calculate the right business day