Public Brokerage* is now supported on QuantConnect! You can deploy live algorithms on QuantConnect and route orders directly to your Public account across four asset classes. Public offers commission-free trading across US-listed equities and options, making it a compelling new brokerage connection for systematic investors.
Asset Class and Account Support
The integration supports US Equities, Equity Options, Index Options, and Crypto. Both cash and margin accounts are supported. Configuring your algorithm to use the Public brokerage model is straightforward:
# Public Brokerage Model
self.set_brokerage_model(BrokerageName.PUBLIC, AccountType.MARGIN)
Order Type Support
Equities, Equity Options, Index Options, and Crypto support Market, Limit, Stop Market, and Stop Limit orders. Combo Limit orders are supported for Equity and Index Options, enabling multi-leg options strategies.
LEAN models Public's Time In Force settings, extended-hours order properties, and margin buying power. Single-leg orders can also be updated after submission.
Data Support
QuantConnect supplies US Equity and Crypto data for live algorithms. Equity Options and Index Options can use a data feed from a third-party vendor. And soon, QuantConnect will also supplying options feed data.
Why Run Public on QuantConnect?
By running Public on QuantConnect, you can harness the LEAN modeling engine and data feeds throughout the research, backtesting, paper trading, and live trading processes, ensuring a consistent development-to-production environment.
Your algorithms run on managed, isolated live-trading nodes rather than fragile self-hosted infrastructure. Our external monitoring services can automatically restart algorithms after runtime errors and brokerage API disconnections, and our team tracks platform status and uptime.
The Public brokerage does not provide a paper trading environment, but you can test your algorithm using QuantConnect Paper Trading with the Public brokerage model before deploying capital.
For those wanting to run the integration locally, Public is also supported through the LEAN CLI, our open-source pip package for running LEAN on-premises.
Getting Started
To get started, enable Trading API access in your Public account and generate a Secret Key. Then open a QuantConnect project, click Deploy Live, select Public, and enter your Secret Key and account number.
LEAN handles the brokerage connection and order routing while your algorithm runs on QuantConnect.
For detailed setup instructions, see the Public deployment documentation.
Happy Trading!
QuantConnect Team
* Public Brokerage (Open to the Public Investing, Inc) and QuantConnect are separate, unaffiliated companies, and neither is responsible for the other's products, services, or policies.
Jared Broad
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!