Class BinomialCRRConvertibleEngine
- Namespace
- NanoQL.PricingEngines
- Assembly
- NanoQL.dll
The binomial convertible engine on the Cox-Ross-Rubinstein tree: QuantLib-Python's BinomialCRRConvertibleEngine, QuantLib's
BinomialConvertibleEngine<CoxRossRubinstein>.
public static class BinomialCRRConvertibleEngine
- Inheritance
-
BinomialCRRConvertibleEngine
- Inherited Members
Methods
Calculate(ConvertibleBond, EvaluationContext, GeneralizedBlackScholesProcess, int, double, ImmutableArray<Dividend>)
Prices a convertible bond on the Cox-Ross-Rubinstein tree.
public static BondResults Calculate(ConvertibleBond bond, EvaluationContext context, GeneralizedBlackScholesProcess process, int timeSteps, double creditSpread, ImmutableArray<Dividend> dividends = default)
Parameters
bondConvertibleBondThe convertible bond.
contextEvaluationContextThe evaluation context.
processGeneralizedBlackScholesProcessThe Black-Scholes process of the underlying.
timeStepsintThe number of time steps, positive.
creditSpreaddoubleThe credit spread.
dividendsImmutableArray<Dividend>The underlying's dividends; none by default.
Returns
- BondResults
The results, as Calculate<TTree>(ConvertibleBond, EvaluationContext, GeneralizedBlackScholesProcess, int, double, ImmutableArray<Dividend>) gives them.
Exceptions
- ArgumentNullException
The bond, the context or the process is null.
- ArgumentOutOfRangeException
timeStepsis negative.- ArgumentException
timeStepsis 0, or a dividend is null.- NanoQLException
The bond can't be priced.