Glad that worked, Pranav, and thank you for sharing the solution. You asked about files where you can read TWS/IBGW settings from. Each account folder under the TWS/IBGW installation folder (the random looking folder names with 40 lower case characters) contains a file called tws.xml (for TWS), ibg.xml (for IB Gateway), or both depending on what you used for login. Those files contain all configuration and layout information. There are also daily backup copies such as tws.Wed.xml. Unfortunately, those files are encrypted and, in order to decrypt them, you'd have to log into TWS/IBGW:
The XML documents are length and have sections for many different layout and operational settings. Among them sections for API "Settings", "Precautions", and "News Configuration". I always wanted to make some tools to automate the monitoring and changing of TWS/IBGW configurations as well as TWS tabs so that I can guarantee consistency between multiple accounts. Reading and updating the XML files once decrypted is not that hard, but the decryption and recovery steps have to be done manually at this point (as far as i know). 闯ü谤驳别苍 ? ? ? On Thu, Mar 27, 2025 at 11:40 AM, Pranav Lal wrote:
|