For star this topic, is neseray the followings Prerequisites as:
- Windows, Linux, or Mac OS.
- Graphical user Interface and Python 3.3 or higher
- Phyton programming language
- And other concepts is Familiarity with sockets and multiple threads
The TWS API (Trader Workstation Application Programming Interface) is a tool provided by Interactive Brokers (IBKR) that allows custom or third-party applications to automate various functionalities of the Trader Workstation (TWS) platform.
Importants Points
1. Platforms Offered by IBKR:
- Trader Workstation (TWS): A Java-based desktop application available on Windows, Linux, and MacOS, requiring manual credential entry for security.
- Client Portal: A web-based platform for trading and account management.
- IBKR Mobile: A trading app for Apple and Android smartphones.
2. API Connections:
- TWS API: An open-source interface to TWS, allowing external applications to automate TWS functionalities.
- WEB API and FIX/CTCI connections: Other methods for custom or third-party applications to connect to IBKR accounts.
3. Functionalities of TWS API:
- Order placement
- Receiving account values
- Receiving portfolio data
- Receiving market data
- Querying financial instrument details
4. Usage and Licensing:
- The TWS API does not add new functionalities but automates existing ones within TWS.
- Source code is available under a non-commercial license and can be accessed at Interactive Brokers GitHub.
- The code is written in general programming languages such as Python, Java, C#, and C++, aimed at experienced programmers.
- A commercial license agreement is available for applications not covered by the default non-commercial license.
- Over 100+ third-party applications compatible with the TWS API are available and advertised on the Investors Marketplace on the Interactive Brokers website.