Options.HTML_1.gif

functions to construct and use Option objects.

The first step is to load the QuantLib package.

Needs["QuantLib`"]

Within the Options part there are several constructors and member functions available

In[972]:=

Select[Category[Options],QLConstructor[#]&]

Out[972]=

Options.HTML_2.gif

In[973]:=

Select[Category[Options],QLMember[#]&]

Out[973]=

Options.HTML_3.gif

Constructors

BarrierOption

Options.HTML_4.gif

Options.HTML_5.gif

obj=BarrierOption[BarrierType,Barrier,Rebate,Payoff,Exercise]

CaAsianOption

Options.HTML_6.gif

Options.HTML_7.gif

obj=CaAsianOption[AverageType,Payoff,Exercise]

DaAsianOption

Options.HTML_8.gif

Options.HTML_9.gif

obj=DaAsianOption[AverageType,RunningAccumulator,PastFixings,FixingDates,Payoff,Exercise]

DividendVanillaOption

Options.HTML_10.gif

Options.HTML_11.gif

obj=DividendVanillaOption[Payoff,Exercise,DividendDates,Dividends]

ForwardVanillaOption

Options.HTML_12.gif

Options.HTML_13.gif

obj=ForwardVanillaOption[Moneyness,ResetDate,Payoff,Exercise]

VanillaOption

Options.HTML_14.gif

Options.HTML_15.gif

obj=VanillaOption[Payoff,Exercise]

EuropeanOption

Options.HTML_16.gif

Options.HTML_17.gif

obj=EuropeanOption[Payoff,Exercise]

QuantoVanillaOption

Options.HTML_18.gif

Options.HTML_19.gif

obj=QuantoVanillaOption[Payoff,Exercise]

QuantoForwardVanillaOption

Options.HTML_20.gif

Options.HTML_21.gif

obj=QuantoForwardVanillaOption[Moneyness,ResetDate,Payoff,Exercise]

Member function

Delta

Delta[obj]

DeltaForward

DeltaForward[obj]

Elasticity

Elasticity[obj]

Gamma

Gamma[obj]

Theta

Theta[obj]

ThetaPerDay

ThetaPerDay[obj]

Vega

Vega[obj]

Rho

Rho[obj]

DividendRho

DividendRho[obj]

ItmCashProbability

ItmCashProbability[obj]

Spikey Created with Wolfram Mathematica 7.0