from thefirstock.firstockModules.optionGreekFunctionality.execution import *


def firstock_OptionGreek(expiryDate, strikePrice, spotPrice, initRate, volatility, optionType):
    try:
        optionGreek = FirstockOptionGreek(
            expiryDate=expiryDate,
            strikePrice=strikePrice,
            spotPrice=spotPrice,
            initRate=initRate,
            volatility=volatility,
            optionType=optionType,
        )

        result = optionGreek.firstockOptionGreek()
        return result

    except Exception as e:
        print(e)
