IB4m - Interactive Brokers API in MATLAB

Access historical data, real-time market data, place orders, options chains, and more
1.7K Downloads
Updated 7 Feb 2022

Interactive Brokers API in Matlab. Get access to the entire TWS API from within MATLAB. Access historical data, real-time market data, options chains, contract details, place orders, portfolio notifications, and more! Includes complete set of tutorials for each API call. Visit GitHub page for Quick Start Guide: https://github.com/softwarespartan/IB4m.
Certainly feel free to ask questions here on the FileExchange but much faster to open issue over on GitHub which goes straight to my email: https://github.com/softwarespartan/IB4m/issues

Cite As

Abel Brown (2024). IB4m - Interactive Brokers API in MATLAB (https://github.com/softwarespartan/IB4m), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.2.1.0

Updated description with link to GitHub
Added example handler TWS.Handler which shows how to create MATLAB objects that subscribe to TWS events. Also, added singleton class for TWS.NextOrderId() which classes can use to get unique order IDs and not have to synchronizing between objects.

1.2.0.0

Added examples to the docs for options chains and IB options computations.

1.1.0.0

Updated MATLAB Version
Fully tested with Matlab 2016a and TWS build 955.4m April 4, 2016
minor bug fixes, added TWS.MarketData.EventHandler to facilitate real-time application, tested with latest versions of TWS and MATLAB 2015b
Updated description with GitHub link and MATLAB version

1.0.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.