getBlackScholesPrice
on the Volatility Surface oracle contract, passing in the token pair, call or put, the spot price, the strike price, and the maturity of the option. This will return the Black Scholes price with the volatility surface value for that specific option plugged into the getVolatilitySurface
, passing in the token pair. Alternatively, one can call getAnnualizedVolatility64x64,
with the same parameters as passed to getBlackScholesPrice
, to get the 64x64 fixed decimal representation of the volatility for a specific option.