This method is called when the market in an option or its underlier moves. TWS’s option model volatilities, prices, and deltas, along with the present value of dividends expected on that options underlier are received.
void tickOptionComputation(int tickerId, int field, double impliedVol, double delta, double modelPrice, double pvDividend)
|
Parameter |
Description |
|
tickerId |
The ticker Id that was specified previously in the call to reqMktData() |
|
field |
Specifies the type of option computation. Pass the field value into TickType.getField(int tickType) to retrieve the field description. For example, a field value of 13 will map to modelOptComp, etc. • 10 = Bid • 11 = Ask • 12 = Last |
|
impliedVol |
The implied volatility calculated by the TWS option modeler, using the specificed ticktype value. |
|
delta |
The option delta calculated by the TWS option modeler. |
|
modelPrice |
The model price |
|
pvDividend |
The present value of dividends expected on the options underlier |