nsepy icon indicating copy to clipboard operation
nsepy copied to clipboard

get_expiry_date(year=2018, month=3) returning incorrect value

Open Ankit-sophos opened this issue 6 years ago • 2 comments

get_expiry_date(year=2018, month=3) returns 3/29/2018 (Last Thursday of Month) but the actual expiry date is 3/28/2018(instead of Last Thursday of Month) for futures contract. It was because of Mahavir Jayanti on 3/29/2018.

Please help with this issue

Best Regards, Ankit

Ankit-sophos avatar Oct 15 '18 21:10 Ankit-sophos

Also issue with the get_expiry_date(year=2014, month=2), returns 2/27/2014 but actual one is 2/26/2014

RY93 avatar Jul 23 '19 16:07 RY93

get_expiry_date(year=2014, month=4), returns 2014-04-24 but actual one is 2014-04-23. This along with the two dates mentioned above are the only 3 wrong ones in the 2014-now(2019-07) range.

lOnewo1f avatar Aug 29 '19 05:08 lOnewo1f