|
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.BinaryOptions
This class evaluates the pay-off from a Binary option at expiry.
| Constructor Summary | |
BinaryOptions()
Creates a new instance. |
|
| Method Summary | |
double |
payOffBinaryCall(double expiryPrice,
double strike,
double payout)
This method calculates the payoff from a binary option at expiry. |
double |
payOffBinaryPut(double expiryPrice,
double strike,
double payout)
This method calculates the payoff from a binary option at expiry. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BinaryOptions()
| Method Detail |
public double payOffBinaryCall(double expiryPrice,
double strike,
double payout)
throws BinaryOptionsDemoException
expiryPrice - underlying asset price at expirystrike - the strike price of the binary call optionpayout - the amount paid out when the binary option is exercised in the money
BinaryOptionsDemoException
public double payOffBinaryPut(double expiryPrice,
double strike,
double payout)
throws BinaryOptionsDemoException
expiryPrice - underlying asset price at expirystrike - the strike price of the binary put optionpayout - the amount paid out when the binary option is exercised in the money
BinaryOptionsDemoException
|
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 | |||||||||