@Description(value="Greeks event is a snapshot of the option price, Black-Scholes volatility and greeks.") public class Greeks extends MarketEvent implements LastingEvent<String>
Greeks event has the following properties:
eventSymbol - symbol of this event;
volatility - Black-Scholes implied volatility of the option;
delta - option delta;
gamma - option gamma;
theta - option theta;
rho - option rho;
vega - option vega.
Greeks.| Constructor and Description |
|---|
Greeks()
Creates new greeks event with default values.
|
Greeks(String eventSymbol)
Creates new greeks event with the specified event symbol.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDelta()
Return option delta.
|
double |
getGamma()
Returns option gamma.
|
double |
getPrice()
Returns option market price.
|
double |
getRho()
Returns option rho.
|
double |
getTheta()
Returns option theta.
|
double |
getVega()
Returns option vega.
|
double |
getVolatility()
Returns Black-Scholes implied volatility of the option.
|
void |
setDelta(double delta)
Changes option delta.
|
void |
setGamma(double gamma)
Changes option gamma.
|
void |
setPrice(double price)
Changes option market price.
|
void |
setRho(double rho)
Changes option rho.
|
void |
setTheta(double theta)
Changes option theta.
|
void |
setVega(double vega)
Changes option vega.
|
void |
setVolatility(double volatility)
Changes Black-Scholes implied volatility of the option.
|
String |
toString()
Returns string representation of this greeks event.
|
getEventSymbol, setEventSymbolclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEventSymbol, setEventSymbolpublic Greeks()
public Greeks(String eventSymbol)
eventSymbol - event symbol.public double getPrice()
public void setPrice(double price)
price - option market price.public double getVolatility()
public void setVolatility(double volatility)
volatility - Black-Scholes implied volatility of the option.public double getDelta()
public void setDelta(double delta)
delta - option delta.public double getGamma()
public void setGamma(double gamma)
gamma - option gamma.public double getTheta()
public void setTheta(double theta)
theta - option theta.public double getRho()
public void setRho(double rho)
rho - option rho.public double getVega()
public void setVega(double vega)
vega - option vega.Copyright © 2015 Devexperts. All Rights Reserved.