|
WebCab Options and Futures Demo v2.5 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--webcab.lib.finance.options.PutCallParity
Within this class we implement put-call parity relations for:
| Constructor Summary | |
PutCallParity()
Creates a new instance. |
|
| Method Summary | |
double |
callBinary(double binaryPut,
double riskFreeRate,
Date evaluationDate,
Date expiryDate,
BusinessCalendar businessCalendar)
This method returns the Binary call option value at any time up to expiry when the Binary put, risk free interest rate and expiry values are known. |
double |
callBinary(double binaryPut,
double riskFreeRate,
double timeToExpiry)
This method returns the Binary call option value at any time up to expiry when the Binary put, risk free interest rate and expiry values are known. |
double |
callEuropean(double valueOfPut,
double assetPrice,
double strike,
double riskFreeRate,
Date evaluationDate,
Date expiryDate,
BusinessCalendar businessCalendar)
This method returns the value of the European call option when the value of the corresponding put option is known. |
double |
callEuropean(double valueOfPut,
double assetPrice,
double strike,
double riskFreeRate,
double timeToExpiry)
This method returns the value of the European call option when the value of the corresponding put option is known. |
double |
callEuropeanWithDividends(double putValue,
double dividendYield,
double assetPrice,
double strike,
double riskFreeRate,
Date evaluationDate,
Date expiryDate,
BusinessCalendar businessCalendar)
Returns the value of a European call option on an underlying asset which pays a continuous dividend. |
double |
callEuropeanWithDividends(double putValue,
double dividendYield,
double assetPrice,
double strike,
double riskFreeRate,
double timeToExpiry)
Returns the value of a European call option on an underlying asset which pays a continuous dividend. |
double |
interestBinary(double binaryCall,
double binaryPut,
Date evaluationDate,
Date expiryDate,
BusinessCalendar businessCalendar)
This method returns the risk free interest rate for all time prior to expiry when of the Binary put/call. |
double |
interestBinary(double binaryCall,
double binaryPut,
double timeToExpiry)
This method returns the risk free interest rate for all time prior to expiry when of the Binary put/call. |
double |
interestEuropean(double valueOfCall,
double valueOfPut,
double assetValue,
double strike,
Date evaluationDate,
Date expiryDate,
BusinessCalendar businessCalendar)
This method returns the implied risk free interest rate when the value of the European put/call options and the underlying asset price is known. |
double |
interestEuropean(double valueOfCall,
double valueOfPut,
double assetValue,
double strike,
double timeToExpiry)
This method returns the implied risk free interest rate when the value of the European put/call options and the underlying asset price is known. |
double |
putBinary(double binaryCall,
double riskFreeRate,
Date evaluationDate,
Date expiryDate,
BusinessCalendar businessCalendar)
This method returns the Binary put option value at any time up to expiry when the Binary call, risk free interest rate and expiry values are known. |
double |
putBinary(double binaryCall,
double riskFreeRate,
double timeToExpiry)
This method returns the Binary put option value at any time up to expiry when the Binary call, risk free interest rate and expiry values are known. |
double |
putEuropean(double valueOfCall,
double assetPrice,
double strike,
double riskFreeRate,
Date evaluationDate,
Date expiryDate,
BusinessCalendar businessCalendar)
This method returns the value of the European put option when the value of the corresponding call option is known. |
double |
putEuropean(double valueOfCall,
double assetPrice,
double strike,
double riskFreeRate,
double timeToExpiry)
This method returns the value of the European put option when the value of the corresponding call option is known. |
double |
putEuropeanWithDividends(double callValue,
double dividendYield,
double assetPrice,
double strike,
double riskFreeRate,
Date evaluationDate,
Date expiryDate,
BusinessCalendar businessCalendar)
Returns the value of a European put option on an underlying asset which pays a continuous dividend. |
double |
putEuropeanWithDividends(double callValue,
double dividendYield,
double assetPrice,
double strike,
double riskFreeRate,
double timeToExpiry)
Returns the value of a European put option on an underlying asset which pays a continuous dividend. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PutCallParity()
| Method Detail |
public double callBinary(double binaryPut,
double riskFreeRate,
Date evaluationDate,
Date expiryDate,
BusinessCalendar businessCalendar)
throws PutCallParityDemoException
binaryPut - the market price of the Binary put optionriskFreeRate - risk free interest rateevaluationDate - the date when the option is evaluatedexpiryDate - the date when the option contracts expirebusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
PutCallParityDemoException
public double callBinary(double binaryPut,
double riskFreeRate,
double timeToExpiry)
throws PutCallParityDemoException
binaryPut - the market price of the Binary put optionriskFreeRate - risk free interest rate
PutCallParityDemoException
public double putBinary(double binaryCall,
double riskFreeRate,
Date evaluationDate,
Date expiryDate,
BusinessCalendar businessCalendar)
throws PutCallParityDemoException
binaryCall - value of the binary call optionriskFreeRate - risk free interest rateevaluationDate - the date when the option is evaluatedexpiryDate - the date when the option contracts expirebusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
PutCallParityDemoException
public double putBinary(double binaryCall,
double riskFreeRate,
double timeToExpiry)
throws PutCallParityDemoException
binaryCall - value of the binary call optionriskFreeRate - risk free interest ratetimeToExpiry - the time (in years) until the put or call Binary options expire
PutCallParityDemoException
public double interestBinary(double binaryCall,
double binaryPut,
Date evaluationDate,
Date expiryDate,
BusinessCalendar businessCalendar)
throws PutCallParityDemoException
binaryPut - value of the Binary putbinaryCall - value of the Binary callevaluationDate - the date when the option is evaluatedexpiryDate - the date when the option contracts expirebusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
PutCallParityDemoException
public double interestBinary(double binaryCall,
double binaryPut,
double timeToExpiry)
throws PutCallParityDemoException
binaryPut - value of the Binary putbinaryCall - value of the Binary calltimeToExpiry - the time (in years) until the put and call Binary option expires
PutCallParityDemoException
public double callEuropean(double valueOfPut,
double assetPrice,
double strike,
double riskFreeRate,
Date evaluationDate,
Date expiryDate,
BusinessCalendar businessCalendar)
throws PutCallParityDemoException
valueOfPut - the value of the put optionassetPrice - the value of the underlying assetstrike - the strike price of the European call optionriskFreeRate - the risk free interest rate during the life of the optionevaluationDate - the date when the option is evaluatedexpiryDate - the date when the option contracts expirebusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
PutCallParityDemoException
public double callEuropean(double valueOfPut,
double assetPrice,
double strike,
double riskFreeRate,
double timeToExpiry)
throws PutCallParityDemoException
valueOfPut - the value of the put optiontimeToExpiry - the time (in years) until the expiry of the option contractsassetPrice - the value of the underlying assetstrike - the strike price of the European call optionriskFreeRate - the risk free interest rate during the life of the option
PutCallParityDemoException
public double putEuropean(double valueOfCall,
double assetPrice,
double strike,
double riskFreeRate,
Date evaluationDate,
Date expiryDate,
BusinessCalendar businessCalendar)
throws PutCallParityDemoException
valueOfCall - the value of the call optionassetPrice - the value of the underlying assetstrike - strike of the optionsriskFreeRate - risk free interest rateevaluationDate - the date when the option is evaluatedexpiryDate - the date when the option contracts expirebusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
PutCallParityDemoException
public double putEuropean(double valueOfCall,
double assetPrice,
double strike,
double riskFreeRate,
double timeToExpiry)
throws PutCallParityDemoException
valueOfCall - the value of the call optiontimeToExpiry - the time (in years) until the option contract expiresassetPrice - the value of the underlying assetstrike - strike of the optionsriskFreeRate - risk free interest rate
PutCallParityDemoException
public double interestEuropean(double valueOfCall,
double valueOfPut,
double assetValue,
double strike,
Date evaluationDate,
Date expiryDate,
BusinessCalendar businessCalendar)
throws PutCallParityDemoException
valueOfCall - value of the call optionvalueOfPut - value of the put optionassetValue - the value of the underlying assetstrike - strike of the options contractsevaluationDate - the date when the option is evaluatedexpiryDate - the date when the option contracts expirebusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
PutCallParityDemoException
public double interestEuropean(double valueOfCall,
double valueOfPut,
double assetValue,
double strike,
double timeToExpiry)
throws PutCallParityDemoException
valueOfCall - value of the call optionvalueOfPut - value of the put optionassetValue - the value of the underlying assettimeToExpiry - the time (in years) until the put and call options expirestrike - strike of the options contracts
PutCallParityDemoException
public double callEuropeanWithDividends(double putValue,
double dividendYield,
double assetPrice,
double strike,
double riskFreeRate,
Date evaluationDate,
Date expiryDate,
BusinessCalendar businessCalendar)
throws PutCallParityDemoException
dividendYield - the continuous dividend yield of the underlying asset during life of the option contractassetPrice - the underlying asset price at evaluation timeriskFreeRate - the risk free interest rateputValue - the value at evaluation time of the correspond put option with same expiry and strike as the call option value being calculatedstrike - the strike of the European call (and put) optionevaluationDate - the date when the option is evaluatedexpiryDate - the date when the option contracts expirebusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
PutCallParityDemoException
public double callEuropeanWithDividends(double putValue,
double dividendYield,
double assetPrice,
double strike,
double riskFreeRate,
double timeToExpiry)
throws PutCallParityDemoException
dividendYield - the continuous dividend yield of the underlying asset during life of the option contractassetPrice - the underlying asset price at evaluation timeriskFreeRate - the risk free interest rateputValue - the value at evaluation time of the correspond put option with same expiry and strike as the call option value being calculatedtimeToExpiry - the time (in years) until the option expiresstrike - the strike of the European call (and put) option
PutCallParityDemoException
public double putEuropeanWithDividends(double callValue,
double dividendYield,
double assetPrice,
double strike,
double riskFreeRate,
Date evaluationDate,
Date expiryDate,
BusinessCalendar businessCalendar)
throws PutCallParityDemoException
dividendYield - the continuous dividend yield of the underlying asset during life of the option contractassetPrice - the underlying asset price at evaluation timeriskFreeRate - the risk free interest ratecallValue - the value at evaluation time of the correspond call option with same the expiry and strike as the call optionstrike - the strike of the European put (and call) optionevaluationDate - the date when the option is evaluatedexpiryDate - the date when the option contracts expirebusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
PutCallParityDemoException
public double putEuropeanWithDividends(double callValue,
double dividendYield,
double assetPrice,
double strike,
double riskFreeRate,
double timeToExpiry)
throws PutCallParityDemoException
dividendYield - the continuous dividend yield of the underlying asset during life of the option contractassetPrice - the underlying asset price at evaluation timeriskFreeRate - the risk free interest ratecallValue - the value at evaluation time of the correspond call option with same the expiry and strike as the call optiontimeToExpiry - the time (in years) until the option expiresstrike - the strike of the European put (and call) option
PutCallParityDemoException
|
WebCab Options and Futures Demo v2.5 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||