API
Instruments
FinancialDerivatives.Instruments.AmericanOption — Type
AmericanOption(s, k, r, σ, t, call)Arguments
s: underlying pricek: strike pricer: risk-free interest rateσ: volatilityt: time to expirationcall:trueif call,falseif put
FinancialDerivatives.Instruments.AsianOption — Type
AsianOption(s, k, r, σ, t, call)Arguments
s: underlying pricek: strike pricer: risk-free interest rateσ: volatilityt: time to expirationcall:trueif call,falseif put
FinancialDerivatives.Instruments.EuropeanOption — Type
EuropeanOption(s, k, r, σ, t, call)Arguments
s: underlying pricek: strike pricer: risk-free interest rateq: dividend yieldσ: volatilityt: time to expirationcall:trueif call,falseif put
FinancialDerivatives.Instruments.FXOption — Type
FXOption(s, k, r_d, r_f, σ, t, call)Arguments
s: underlying pricek: strike pricer_d: domestic risk-free interest rater_f: foreign risk-free interest rateσ: volatilityt: time to expirationcall:trueif call,falseif put
FinancialDerivatives.Instruments.InterestRateDerivative — Type
InterestRateDerivative(k, r, σ, θ, t)Arguments
k: speed of reversionr: initial interest rateσ: instantaneous volatilityθ: long term mean levelt: time interval
Market Data
FinancialDerivatives.MarketData.AbstractMarketData — Type
Abstract supertype for market observables (spot prices, rates, volatilities, etc.).
FinancialDerivatives.MarketData.EquityMarketData — Type
Market observables required to price equity derivatives.
FinancialDerivatives.MarketData.FXMarketData — Type
Market observables required to price foreign-exchange derivatives.
FinancialDerivatives.MarketData.InterestRateMarketData — Type
Market observables required to price interest-rate derivatives.
Pricing Engines
FinancialDerivatives.Engines.PricingEngine — Type
Abstract supertype for numerical pricing methods (analytic, binomial tree, Monte Carlo, FD). Subtypes should implement:
FinancialDerivatives.Engines.AnalyticEngine — Type
Pricing engine for instruments with closed-form or semi-analytic solutions.
FinancialDerivatives.Engines.BinomialEngine — Type
Pricing engine based on recombining binomial tree methods.
FinancialDerivatives.Engines.MonteCarloEngine — Type
Pricing engine based on Monte Carlo simulation.
FinancialDerivatives.Engines.FiniteDifferenceEngine — Type
Pricing engine based on finite-difference PDE methods.
Models
FinancialDerivatives.Models.BlackKarasinskiModule.BlackKarasinski — Type
BlackKarasinski()FinancialDerivatives.Models.BlackScholesModule.BlackScholes — Type
BlackScholes()FinancialDerivatives.Models.BrennanSchwartzModule.BrennanSchwartz — Type
BrennanSchwartz()FinancialDerivatives.Models.CoxIngersollRossModule.CoxIngersollRoss — Type
CoxIngersollRoss()FinancialDerivatives.Models.GarmanKohlhagenModule.GarmanKohlhagen — Type
GarmanKohlhagen()FinancialDerivatives.Models.JarrowRuddModule.JarrowRudd — Type
JarrowRudd()FinancialDerivatives.Models.LongstaffSchwartzModule.LongstaffSchwartz — Type
LongstaffSchwartz()FinancialDerivatives.Models.RendlemanBartterModule.RendlemanBartter — Type
RendlemanBartter()FinancialDerivatives.Models.VasicekModule.Vasicek — Type
Vasicek()Pricing
FinancialDerivatives.Engines.price — Function
price(engine, instrument, model, market_data) -> RealCompute the fair value of instrument under model using engine and market_data.
Private
FinancialDerivatives.Instruments.Derivative — Type
Abstract type for derivative contract.
FinancialDerivatives.Instruments.Forward — Type
Abstract type for forward contract.
FinancialDerivatives.Instruments.Future — Type
Abstract type for futures contract.
FinancialDerivatives.Instruments.Option — Type
Abstract type for option.
FinancialDerivatives.Instruments.Swap — Type
Abstract type for swap.
FinancialDerivatives.Instruments.Swaption — Type
Abstract type for swaption.