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

Market News

Navigating Shifting Sands: Recession Risks and Global Commodity Trends

Regardless of the outcome of last Friday’s US labor market data, our indicators for the risk of recession have fallen surprisingly over the past few days: The ‘Macro Fever Curve’ fell from 100% recession risk to 86%…

blockdag

BlockDAG Introduces 10 New Crypto Deposit Methods As Presale Explodes To $23.6M; More On Shiba Inu and Avalanche Prices

Discover BDAG’s role in forecasting Shiba Inu prices and influencing Avalanche market trends with innovative payment methods, strategic investment phases, and a liquidity boost of $100 million.

Market News, Tech and Fundamental, Technical Analysis

EURJPY Technical Analysis Report 7 May, 2024

Given the prevailing daily uptrend, EURJPY currency pair can be expected to rise further toward the next resistance level 168.00.

Fintech

AS LPB Bank is transitioning to AS Magnetiq Bank and will henceforth focus on the FinTech and e-commerce sectors

AS LPB Bank officially changed its legal name to AS Magnetiq Bank, while also introducing a new brand visual identity.

Inside View

Finalto explains how brokers can better engage new retail traders

Marketing to a New Kind of Trader: (Without Alienating Your Main Audience) addresses the new challenges and opportunities faced by brokers amid spiking retail investor activity since 2021, which now accounts for nearly 25% of the total trading volume in the equities market. 

Industry News

UK FCA bans and fines ex-Shard James Lewis £120k

The regulatory agency claims that, in both instances, James Lewis knew the information he provided would be used to produce the clients’ annual accounts, and that’s why he misstated.

Market News

Rivian Stock Moves Higher Amid Mounting Anticipation for Q1 Report

The anticipation surrounding Rivian Automotive’s first-quarter earnings report has sent its stock on a rollercoaster ride of volatility.

Institutional FX

Amwal deploys Broadridge’s investment management platform

“We are delighted to provide Amwal Capital Partners with the technology they need to drive new efficiencies and automate their key processes, allowing them to make better-informed investment decisions and effectively manage their overall risk.”

Executive Moves

DHF Capital hires Erik Boekel as Chief Commercial Officer

Erik Boekel has an extensive professional background encompassing regional responsibilities across Africa, the Middle East, and Europe.

<