API to know if trading day is a weekly expiry?

Hi Team,
@siva

Is there any way or API call where the code can check whether today is a expiry day ( weekly ) ?

BR
TM