Hi. Previous threads and responses indicated that while fractional share trading was not compatible with backtesting or paper trading, I would be able to trade fractional shares when I executed live with alpaca as my brokerage. After executing live today, all of my trades are still rounded to the nearest whole share. What is up with that?
Mia Alissi
Here's a checklist and set of troubleshooting steps for you, Zachary, to help figure out why your live Alpaca trades are still being rounded to whole shares instead of allowing for fractional quantities:
Fractional Share Trading with Alpaca: Troubleshooting Checklist
Verify Alpaca Account Fractional Permissions:
Check for Fractional Order Quantities in Your Code:
2.25
shares) in your trade orders. If your code usesint()
or similar, it may be rounding before reaching Alpaca.self.Order()
orself.SetHoldings()
) to confirm the quantities are not always integers.Confirm You Are in Live Mode Using Alpaca:
Ensure the Asset Type Supports Fractionals:
Validate QuantConnect Brokerage Configuration:
Review Live Trading Logs and Message Alerts:
If any of the above checks reveal an issue (for example: fractional trading is not enabled on your Alpaca account, or your code is using integer order quantities), make the necessary changes. If everything seems correct but the problem persists, reach out to QuantConnect or Alpaca support with specific order and execution details for further assistance.
Let me know if you want me to look at your code for the order submission calls, or guide you through checking your Alpaca settings!
Sources: Opening Range Breakout for Stocks in Play, Getting Started - QuantConnect.com, QuantConnect Paper Trading - QuantConnect.com, QuantConnect Paper Trading - QuantConnect.com, Reimagining the 60-40 Portfolio in an Era of AI and Falling Rates
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.
Zachary Allgood
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!