Interactive Brokers updates TWS API

Maria Nikolova

The TWS API now provides a DDE Socket Bridge API.

Online trading major Interactive Brokers Group, Inc. (IEX:IBKR) has recently released an updated version of the TWS API.

The TWS API now provides a DDE Socket Bridge API. This feature adds the same functionality included in Interactive Brokers’ socket-based APIs to the DDE API, so DDE users now have access to many features not previously available, including daily open price, multiple account data subscriptions and more. In addition, it is backwards-compatible with earlier DDE syntax and worksheets.

The Dynamic Data Exchange protocol is a method of inter-process communication developed by Microsoft to establish communication between Windows applications running on the same computer. The DDE API is available for Windows computers to create a means of communication between Microsoft Excel and TWS or IB Gateway.

Interactive Brokers does not offer any programming assistance and therefore it is recommended to anyone considering using any of the TWS DDE API to become familiar with the technologies involved such as the DDE protocol and VBA.

Beginning in API v975, a new DDE API is offered which connects to TWS via a DDE socket bridge that uses the open source Java – DDE interoperability library JDDE. The newer API has some advantages over the legacy DDE API:

  • Compatibility with either 32 or 64 bit TWS (The legacy DDE API is only compatible with 32 bit TWS);
  • Additional functionality matching other socket-based APIs, especially in regards to multiple account structures’
  • Full range of market data tick types.

Unlike in the legacy DDE API, the username to be used in Excel DDE spreadsheets is determined by the DDE server launched independently, and not by the username used in TWS. The default username is twsserver, but this can be changed in the runDdeSocketBridge.bat file. The folder C:\TWS API\samples\DdeSocketBridge included with the API for Windows v975+ installation contains the source code for the new DDE connections.

You can find out more about the new API here.

The latest API release also offers new fields in Market Depth Requests. A primary exchange field has been added to market depth requests to prevent ambiguity for Smart-routed depth requests.

Read this next

Fintech

Sterling to provide risk and margin support for fixed income

“Firms must have the tools to effectively manage their risk across all asset classes. As yields rise, we see more exposure from clients in the fixed income space. We understand their need to measure and mitigate risk in a highly regulated environment.”

Retail FX

FXOpen launches HK share CFDs: Tencent, Alibaba, Xiaomi, Baidu

Hong Kong share CFDs will be commission-free for a limited period of time.

Retail FX

IronFX Celebrates an Award-Winning Start to 2024 with a Series of Industry Recognitions

IronFX, a global leader in online trading, has embarked on 2024 with a spectacular display of accolades that highlight its commitment to excellence and innovation in the competitive financial services sector.

Industry News

FIA urges CFTC to regulate use cases rather than AI itself

“We urge the CFTC to refrain from crafting new regulations that generally regulate AI because this approach presents certain well-known pitfalls. By approaching the issue from the perspective of AI as a technology, rather than the use case for the technology, corresponding regulations would likely necessitate a definition of AI. We anticipate that any attempt to properly define AI would be very challenging and require considerable resources.”

Education, Inside View

The Power of Public Relations in Finance: Shaping Perceptions & Building Reputation

It’s safe to say that the finance industry has faced its share of reputation crises over the years, from the 2008 financial collapse to the many scandals around irresponsible lending, political corruption, and even Ponzi schemes. 

Digital Assets

Crossover’s crypto ECN executed over $3 billion in Q1 2024

“Our growth is also driving continued increases in the percentages of trades that are ‘Order Crossing Order’ (OXO). Currently, roughly 10% of all trades executed on CROSSx are OXO, another differentiator in our platform’s capacity. This capacity and our unique execution model provide value to both the market maker and taker, as evidenced by our commercial model.”

blockdag

BlockDAG’s Explosive Presale Hits $20.3M In April Swaying Investors From XRP’s Price Trends Upward, & Polygon’s NFT Market

Learn about BlockDAG’s impressive $20.3M presale results, XRP’s price increase prospects, and the booming NFT market on Polygon among the top 10 cryptocurrencies.

Retail FX

Financial Commission warns of Eplanet Brokers

The Financial Commission, a self-regulatory compliance specialist for the financial services industry, is ramping up its scrutiny of unregulated brokerage firms. Today, the independent association warned against a company called Eplanet Brokers.

Retail FX

Dubai crypto exchange steps into prop trading

Dubai-based cryptocurrency trading platform, CoinW Exchange, marked its sixth anniversary by announcing a rebranding initiative and launching a proprietary trading product.

<