Political, Economic and Climate Forecast Contracts Are Live -
Client Login | View Markets | Learn More

The modifications below are in build 9.64 of the TWS API. Please note that all the enhancements for release 9.64 require the minimum server version 48 (TWS version 905).

For clarification on any of the items listed, refer to the appropriate section in the API Reference Guide, or send us an email at Beta Support.

Enhancements
Request Market Data and Place Order by conid

You can now request market data and place orders from the API using the conid, the unique contract identifier. Previously, the conid could only be used for contract details. Use conid+exchange to request market data and place orders from the API.

This enhancement applies to the ActiveX, C++ and Java APIs.

Bond Bid/Ask/Last Yield

API market data requests for bond contracts now return values for askYield, bidYield and lastYield.

This enhancement applies to the ActiveX, C++ and Java APIs.

New Request for Implied Volatility

A new API request, calculateImpliedVolatility, calculates the Implied Volatility based on the user-supplied option and underlying prices. This new request is also included in the Java, Active X and C++ Sample Test Clients included with this release.

calculateImpliedVolatility(int reqId, Contract optionContract, double optionPrice, double underPrice)

where

The calculated implied volatility is returned by tickOptionComputation( ) in a new tick type, CUST_OPTION_COMPUTATION, which is described below.

A related request, cancelCalculateImpliedVolatility(int reqId), has also been added. This new request cancels a calculateImpliedVolatility request and is also included in the Java, Active X and C++ Sample Test Clients included with this release. .

This enhancement applies to the ActiveX, C++ and Java APIs and requires TWS

New Tick Type

A new tick type has been added to the API:

This enhancement applies to the ActiveX, C++ and Java APIs.

Tick Types Now Return Greeks, Underlying Price, Model Implied Volatility, Stock and Option Reference Price

The following tick types return values for the Greeks (delta, gamma, vega, theta), the underlying price, pvDividend and the stock and option reference price when requested:

MODEL_OPTION_COMPUTATION also returns model implied volatility.

This enhancement applies to the ActiveX, C++ and Java APIs.

New Request to Calculate Option Price and Greek Values

A new API request, calculateOptionPrice, calculates the option price and greek values based on a user-supplied implied volatility and underlying prices. This new request is also part of the Java, Active X and C++ Sample Test Clients included with this release.

calculateOptionPrice(int reqId, Contract optionContract, double volatility, double underPrice)

where

The calculated option price and greek values are returned by tickOptionComputation( ) in the new tick type, CUST_OPTION_COMPUTATION, which is described below.

A related request, cancelCalculateOptionPrice(int reqId), has also been added. This new request cancels a calculateOptionPrice request and is also part of the Java, Active X and C++ Sample Test Clients included with this release. .

This enhancement applies to the ActiveX, C++ and Java APIs.

© 2001 - 2010 Interactive Brokers LLC. All rights reserved. Sun, Sun Microsystems, the Sun Logo and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. Excel is a trademark or registered trademark of Microsoft Corporation in the United States and/or other countries.