OpenBI Docs Buy

QUANT.OPTION.GREEK OpenBI

One of an option's sensitivities: delta, gamma, vega, theta or rho.

Group: Quantitative finance. OpenBI’s own: DAX has no function of this name.

Syntax

QUANT.OPTION.GREEK ( <greek>, <optionType>, <spot>, <strike>, <valuationDate>, <expiry>, <volatility>, <riskFreeRate> [, <dividendYield>] [, <style>] )
ParameterTypeDescription
greekText"delta", "gamma", "vega", "theta" or "rho": which sensitivity.
optionTypeText"call" or "put".
spotNumberThe price of what the option is on, today.
strikeNumberThe price at which the option lets its holder buy (a call) or sell (a put).
valuationDateDateThe day the option is valued.
expiryDateThe day the option expires; it must come after the valuation date.
volatilityNumberThe yearly volatility as a decimal: 0.2 for 20 %.
riskFreeRateNumberThe risk-free rate as a decimal, continuously compounded.
dividendYieldNumber
optional
A continuous dividend yield (or, for a commodity or a currency, its carry) as a decimal; 0 when left out.
styleText
optional
"european" (when left out), exercised at expiry only, or "american", any day until then.

Returns

Number. The sensitivity of the option's value, per unit of what moves (see the remarks).

Remarks

  • Delta is the change in value for one unit of the spot, gamma the change in delta for one unit of the spot.
  • Vega is for a volatility one whole unit higher (from 0.2 to 1.2): divide by 100 for one percentage point. Rho likewise for the rate.
  • Theta is the change in value over a year of time passing, usually negative: divide by 365 for a day.
  • For an American option, vega and rho are found by valuing it again with the volatility or the rate nudged up and down.
  • Time runs from the valuation date to the expiry in days over 365. The rate, the dividend yield and the volatility are flat over that time.
  • The greek's name is not case-sensitive; any other name is an error.

Compared with DAX

An OpenBI function: DAX has none like it, so a measure or query that uses it works in OpenBI only, not in Power BI or Analysis Services.

Examples

The greeks of a call at the money

The one-year call from QUANT.OPTION.PRICE's first example, with vega and rho for a percentage point and theta for a day.

EVALUATE
VAR Today = DATE ( 2026, 1, 1 )
VAR Expiry = DATE ( 2027, 1, 1 )
RETURN
    ROW (
        "Delta", QUANT.OPTION.GREEK ( "delta", "call", 100, 100, Today, Expiry, 0.2, 0.05 ),
        "Gamma", QUANT.OPTION.GREEK ( "gamma", "call", 100, 100, Today, Expiry, 0.2, 0.05 ),
        "Vega, a point", QUANT.OPTION.GREEK ( "vega", "call", 100, 100, Today, Expiry, 0.2, 0.05 ) / 100,
        "Theta, a day", QUANT.OPTION.GREEK ( "theta", "call", 100, 100, Today, Expiry, 0.2, 0.05 ) / 365,
        "Rho, a point", QUANT.OPTION.GREEK ( "rho", "call", 100, 100, Today, Expiry, 0.2, 0.05 ) / 100
    )
DeltaGammaVega, a pointTheta, a dayRho, a point
0.6368306511756190.01876201734584690.375240346916938-0.01757267820941970.532324815453764

Delta across strikes

Deep in the money a call moves almost one for one with the spot; far out of it, hardly at all.

EVALUATE
SELECTCOLUMNS (
    GENERATESERIES ( 70, 130, 15 ),
    "Strike", [Value],
    "Delta", ROUND ( QUANT.OPTION.GREEK ( "delta", "call", 100, [Value], DATE ( 2026, 1, 1 ), DATE ( 2027, 1, 1 ), 0.2, 0.05 ), 4 )
)
StrikeDelta
700.9836
850.8775
1000.6368
1150.3636
1300.1681

QUANT.OPTION.PRICE, QUANT.OPTION.IMPLIEDVOL, QUANT.BOND.DV01.

Last updated · OpenBI Studio 0.3.74