I am also facing the same issue..not fetching option greek data... Pls check if the syntax is correct.
orderparams = {
"name": "BANKNIFTY18SEP2451800CE",
"expiry": "18SEP2024"
}
optionGreek=smartApi.optionGreek(orderparams)
logger.info(f"OptionGreek : {optionGreek}")
[E 240913 15:55:53 smartConnect:243] Error occurred while making a POST request to https://apiconnect.angelone.in/rest/secure/angelbroking/marketData/v1/optionGreek. Error: Invalid expiry date. URL: https://apiconnect.angelone.in/rest/secure/angelbroking/marketData/v1/optionGreek, Headers: {'Content-type': 'application/json', 'X-ClientLocalIP': '127.0.0.1', 'X-ClientPublicIP': '106.193.147.98', 'X-MACAddress': '80:81:1f:ea:10:7c', 'Accept': 'application/json', 'X-PrivateKey': 'A6m1pZof', 'X-UserType': 'USER', 'X-SourceID': 'WEB'}, Request: {'name': 'BANKNIFTY18SEP2451800CE', 'expiry': '18SEP2024'}, Response: {'message': 'Invalid expiry date', 'errorcode': 'AB9022', 'status': False, 'data': None}