Interactive Brokers offers the ability to trade, monitor and manage your IBKR account using a single RESTful API.
Traders’ Academy offers several courses centered on using the Trader Workstation (TWS) Application Programming Interface (API), including its use with the computer programming languages Python and R, as well as more basic functions such as using the Microsoft Excel application with TWS to manage an IBKR trading account, and automate trading. Also, learn how Interactive Brokers enables trading, monitoring, and managing IBKR accounts by using a single RESTful API. Lessons in this Web API course include how to code an IB algo order in the Web API, how to code a bracket order in the Web API, and how to code a fractional shares order in the Web API, and much more.
This course covers the API basics and how you can use Excel together with TWS to manage your account and automate your trading. You can follow along with our samples and test it out for yourself using your paper trading account.
Lesson: #1 Introduction to the TWS Excel API & Initial Setup
Lesson: #2 Using RealTimeData (RTD) server for Excel
Lesson: #3 The Dynamic Data Exchange (DDE) in Excel using a sample spreadsheet
Lesson: #4 ActiveX in Excel, with a TWS Sample spreadsheet
Lesson: #5 Advanced TWS DDE Functionality
Lesson: #6 Diagnosing Issues and Troubleshooting with the TWS API
R has an array of R-packages for automated trading and performance analytics for back testing and analyzing trading strategies. The IBrokers package has been created by Jeffrey Ryan and is currently maintained by Joshua Ulrich.
Lesson: #1 Introduction to R and RStudio
Lesson: #2 Installing R and RStudio
Lesson: #3 Configuring IB’s Trader Workstation
Lesson: #4 Introduction to IBrokers Package
Lesson: #5 Market Data Functions
Lesson: #6 Customizing Market Data Functions
Lesson: #7 Order Functions
Lesson: #8 Sample Trading Strategy
This is a course in programming with the Trader Workstation Application Programming Interface (TWS API) for Python developers. In this course, we describe how to get started in developing Python applications that use the API.