|
Quantlib SouthKorea calendar reports 5 April 2006 and 2007 as a non-business day (possibly in other years too). Bloomberg CDR SK reports these days as settlement days.
On the other hand, according to Bloomberg 9 Apr 2008 is not a settlement day(Election Day holiday), while according to Quantlib it is a business day. There are some more discrepancies in May 2008.
Test environment:
C#
Quantlib 0.8.0 and 0.9.0
SWIG
Here is a code sample in C#:
//QuantLib.Calendar cal = new QuantLib.SouthKorea(SouthKorea.Market.KRX);
QuantLib.Calendar cal = new QuantLib.SouthKorea();
DateTime dt = new DateTime(2006, 4, 5);
QuantLib.Date quant_dt = new QuantLib.Date(dt.Day, (QuantLib.Month)dt.Month, dt.Year);
bool result = cal.isBusinessDay(quant_dt);
Cheers,
Konstantin
|