What You Will Need
The LYNX API for Windows needs to be downloaded and installed before proceeding. Version 975 or higher is recommended in order to use the DDE Socket Bridge API. You can download this version from our API Download Page
The TWS must be up and running while using any API connection including DDE.
- For the DDE Socket Bridge API available in v975, socket connections must be enabled in TWS or IB Gateway. In TWS, this setting is at Global Configuration -> API -> Settings -> "Enable ActiveX and Socket Clients" (in IB Gateway it is enabled by default).
- Additionally to run the DDE Socket Bridge API, the DDE server must be launched by running the file C:\TWS API\samples\DdeSocketBridge\runDdeSocketBridge.bat as described at DDE Socket Bridge API
Additional Setup for Legacy DDE API
This section pertains the the legacy DDE API that was the only DDE API provided with API versions 974 and below. DDE client connectivity must be enabled at: Global Configuration -> API -> Settings: Enable DDE clients as indicated in the picture below:
TWS users running add-on applications in Excel using DDE on a Windows 64-bit operating systems may receive the following error message upon log in or when enabling the DDE client:
Please follow the instruction How to fix the error: "Ddedll.dll file missing or out of date" to resolve the error before going forward to Tutorials.