nsepy
nsepy copied to clipboard
get_expiry_date(year=2018, month=3) returning incorrect value
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
Also issue with the get_expiry_date(year=2014, month=2), returns 2/27/2014 but actual one is 2/26/2014
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.