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

Education, Inside View

Charting the Course: Expert Analysis on GBP/USD Signal

The GBP/USD is one of the highly regarded currency pairs in the world of Forex trading, known for being liquid, volatile, and having narrow spreads. Traders Union’s analysis combines the latest economic data, market news, and technical indicators, giving all the insights needed to make informed decisions about trading pounds and dollars.

Institutional FX

Iress’ QuantHouse adds BMLL’s historical order book data

“Across the industry, as sophistication levels increase, the demand for superior quality historical market data is intensifying. Market participants need easy access to global, ready-to-use data to improve their own products and strategies, gain a deeper understanding of liquidity dynamics, and generate alpha more predictably, without the burden of data engineering and infrastructure on their P&L.”

SEO

Binance Australia: Revolutionizing Cryptocurrency Trading Down Under

In 2024, Binance Australia continues to shape the cryptocurrency landscape, offering innovative trading solutions and comprehensive support for Australian traders. This article explores its services, regulatory compliance, and what makes it a top choice for crypto enthusiasts in Australia.

Inside View

European share trading is much higher than believed, says report

“Regulators in the EU and UK need to take the opportunity presented by the imminent establishment of a Consolidated Tape for shares and ETFs to update relevant post-trade transparency rules, so that they capture the full scope of share trading activity in Europe. Without this, Europe risks being left behind.”

Digital Assets

Abra launches prime solutions for digital assets

As an SEC-registered RIA, ACM will now operate as a fiduciary and allow clients to get exposure to the digital asset ecosystem under a separate account structure built on-chain, where clients retain title and ownership over their assets and their assets will be independently verifiable on-chain.

Retail FX

Unusual Whales taps Tastytrade as exclusive options broker

“We’re huge fans of Unusual Whales and the transparency they bring to the markets, enabling traders to make informed decisions.”

Industry News

GenAI can help transform OTC derivatives markets, said ISDA whitepaper

The risks of GenAI, however, include data breaches, regulatory issues, bias, as well as sub-standard or simply false results.

Institutional FX

B2Broker ups leverage on major Forex pairs, BTC and ETH

“This strategic update not only enhances our clients’ competitive edge but also augments their capacity to cater to the evolving demands of their clientele, attract new business, and elevate their service standards by leveraging our liquidity solutions.”

Industry News

Avraham Eisenberg convicted of $110 million DEX manipulation

Avraham Eisenberg, 28, has been convicted of commodities fraud, commodities market manipulation, and wire fraud in connection with the manipulation of the Mango Markets decentralized cryptocurrency exchange.

<