Add IB Gateway support for ARM64 architecture#9410
Open
dfjmax wants to merge 1 commit intoQuantConnect:masterfrom
Open
Add IB Gateway support for ARM64 architecture#9410dfjmax wants to merge 1 commit intoQuantConnect:masterfrom
dfjmax wants to merge 1 commit intoQuantConnect:masterfrom
Conversation
Fixes QuantConnect#9409 Install Interactive Brokers Gateway in the ARM foundation image to enable Interactive Brokers data downloads and trading on Apple Silicon and other ARM64 platforms. Changes: - Add IB Gateway installation using stable-standalone ARM installer - Install required dependencies (libasound2, libnss3, libnspr4) - Mirror the AMD64 installation pattern for ARM64 compatibility Tested: - Build succeeds on ARM64 (Apple Silicon) - IB Gateway starts and connects successfully - Historical data downloads work via IB API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds Interactive Brokers Gateway installation to the ARM foundation image (
DockerfileLeanFoundationARM), enabling local live trading with IBKR on Apple Silicon Macs (M-series) and other ARM64 platforms.Previously, the ARM image lacked IB Gateway support, forcing users to either:
This change brings the ARM foundation image to feature parity with AMD64 for Interactive Brokers support.
Changes:
libasound2,libnss3,libnspr4DockerfileLeanFoundationNote on lean-cli:
This PR adds IB Gateway to the ARM foundation image. Full IB live trading on ARM will also require removing the guard in lean-cli that currently prevents Interactive Brokers from being used on ARM hosts.
Related Issue
#9409
Motivation and Context
This PR enables researchers and traders with Apple Silicon hardware to run local LEAN bots with Interactive Brokers without needing additional x86 hardware.
Without this change, users on Apple Silicon must either use QC Cloud for IB live trading or maintain a separate x86 machine, which adds cost and complexity.
Requires Documentation Change
The LEAN documentation may need a note about ARM64 support for Interactive Brokers.
How Has This Been Tested?
Testing Environment:
Test Cases:
lean buildcompletes successfully on ARM64lean data downloadworks (tested with SPY Daily data from 2000-2025)Types of changes
Checklist:
bug-<issue#>-<description>orfeature-<issue#>-<description>