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

Metaverse Gaming NFT

Despite crypto winter, Fastex grabs $23.2 million in Fasttoken token sale

Fasttoken, part of the Fastex web3 ecosystem, has secured $23.2 million in financing through the private and public token sales of its native cryptocurrency Fasttoken (FTN).

Digital Assets

Iran to repay Russian debts in gold-backed stablecoins

A high-ranking member of the Russian parliament confirmed reports that his country was in talks with Iran to create a stablecoin for foreign trade settlements, to replace the dollar, ruble and Iranian rial.

Digital Assets

SEC denies Cathie Wood’s bitcoin ETF for second time

The approval of a regulated crypto derivative is still looking far less likely, as the US regulators have once again denied Cathie Wood’s application for a long-awaited spot bitcoin exchange-traded fund (ETF).

Executive Moves

Pavel Spirin promoted to Scope Markets CEO following Rostro acquisition

Belize-based FX and CFDs brokerage Scope Markets has promoted Pavel Spirin to take on an expanded role as the company’s chief executive officer. He replaces the outgoing CEO Jacob Plattner, who has also been a major shareholder since he resigned his position as managing director at GKFX.

Retail FX goes all-in on alternative investing, launches Rare Sneaker Portfolio

“The concept of curated Portfolios means that our members will be able to invest in categories like art, trading cards, royalties, and real estate without needing to become subject matter experts on individual assets.”

Industry News

State Street taps AWS and Microsoft for cloud and infrastructure solutions

“By standardizing and simplifying our technology operating model, we will be able to more quickly deploy client environments and launch new products and services, while continuing to enhance the resiliency of our technology environment and our business operations.”

Institutional FX

Bitpanda launches Investment-as-a-Service business for banks, fintechs, online platforms

“Financial institutions today have to ask themselves how they aim to cater the increasing demand for modern investing solutions. Building these Individually, means a high startup cost, and products that are often outdated before they are even launched.”

Institutional FX

Options expands market data feeds after partnership with Tools for Brokers

“Our integration with ACTIV Financial marked the beginning of a new era in market data availability and infrastructure. Our teams have come together to provide unparalleled, fully managed market data services alongside Options’ global connectivity and infrastructure.”

Industry News

Recruitment in financial services sector buoyant despite planned mass layoffs

“It remains to be seen what impact this will have on hiring levels within the financial services arena this quarter”, said APSCo, regarding the expected mass layoffs within the financial services sector in England & Wales.