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

Digital Assets

Himalaya Exchange customers seek release of frozen funds from DOJ

FormerFeds, a corporate defense and litigation service provider, has filed a lawsuit against the U.S. Department of Justice (DOJ) on behalf of over three and a half thousand Himalaya Exchange customers.

Digital Assets

Nubank, Circle, and Talos join forces for crypto adoption in Brazil

Nubank, the Brazilian neobank backed by Warren Buffett’s Berkshire Hathaway and Softbank Group Corp, announced new partnerships with cryptocurrency firms Circle and Talos.

Metaverse Gaming NFT

Flare onboards Ankr, Figment, Restake, and NorthStake as validators

Flare, an EVM smart contract platform known for its focus on blockchain data utility, has announced a major step in its development. The platform has onboarded leading infrastructure providers, including Ankr, Figment, Restake, and NorthStake.

Digital Assets

Sui Joins DeFi Leaders, Topping $100M in Bridged USDC

Sui, the groundbreaking Layer 1 blockchain created by the technology experts who led Meta’s Diem blockchain initiative and created the Move smart contract language, continues its explosive ascent in decentralized finance (DeFi). This week, it surpassed $100 million in bridged USDC. 

Digital Assets

Poloniex hit by UK regulator, listed as ‘unauthorised’ exchange

The UK’s Financial Conduct Authority (FCA) has added the cryptocurrency exchange Poloniex to its warning list of non-authorized companies. Poloniex, which is based in Seychelles, has experienced four hacks in the last two months and is affiliated with entrepreneur Justin Sun.

Industry News

Exclusive Markets is Proudly ISO/IEC 27001:2013 Certified by MSECB for Unparalleled Commitment to Information Security

Exclusive Markets, a leading name in the FINTECH sector, proudly announces the attainment of ISO/IEC 27001:2013 Certification by the MSECB. This esteemed certification highlights Exclusive Markets’ persistent commitment to fortifying information security within its cutting-edge trading technology. 

Digital Assets

SEC is discussing ‘technical details’ of Bitcoin EFTs ahead of approval

Discussions between the U.S. Securities and Exchange Commission (SEC) and asset managers seeking to list Bitcoin exchange-traded funds (ETFs) have reportedly advanced to key technical details.

Digital Assets

Versatus Labs Reaches $50 Million Valuation Following $2.3 Million Seed Funding Round

Versatus Labs, a peer-to-peer web services protocol aiming to help Web2 developers transition to Web3, has completed a $2.3 million funding round at a $50 million valuation led by key investors in the Web3 space including NGC Ventures and Republic Crypto. The latest funding round aims to help the company develop the ‘world’s first stateless roll-up’, Versatus LASR. This follows Versatus Labs’ recent pivot from Layer 1 solutions to Ethereum scaling solutions. 

Digital Assets

Binance ex-chief’s sentencing looms as court accepts his guilty plea

A U.S. district judge has accepted a guilty plea from former Binance CEO Changpeng Zhao (CZ) on charges related to anti-money laundering violations. The plea was accepted by Judge Richard Jones in the U.S. District Court for the Western District of Washington in Seattle.

<