trying to run Live Alpaca paper trading on LEAN locally, i changed the foloowing below
Start: 10/2/2020 8:20:20 PM. End: 12/31/2050 12:00:00 AM
20201002 15:20:21.788 Trace:: Config.GetValue(): show-missing-data-logs - Using default value: False
20201002 15:20:21.956 Trace:: BaseSetupHandler.SetupCurrencyConversions():
Symbol Quantity Conversion = Value in USD
USD: $ 100000.00 @ 1.00 = $100000.0
-------------------------------------------------
CashBook Total Value: $100000.0
20201002 15:20:21.972 Trace:: JOB HANDLERS:
20201002 15:20:21.973 Trace:: DataFeed: QuantConnect.Lean.Engine.DataFeeds.LiveTradingDataFeed
20201002 15:20:21.973 Trace:: Setup: QuantConnect.Lean.Engine.Setup.BrokerageSetupHandler
20201002 15:20:21.973 Trace:: RealTime: QuantConnect.Lean.Engine.RealTime.LiveTradingRealTimeHandler
20201002 15:20:21.974 Trace:: Results: QuantConnect.Lean.Engine.Results.LiveTradingResultHandler
20201002 15:20:21.974 Trace:: Transactions: QuantConnect.Lean.Engine.TransactionHandlers.BacktestingTransactionHandler
20201002 15:20:21.975 Trace:: Alpha: QuantConnect.Lean.Engine.Alphas.DefaultAlphaHandler
20201002 15:20:21.975 Trace:: ObjectStore: QuantConnect.Lean.Engine.Storage.LocalObjectStore
20201002 15:20:21.975 Trace:: History Provider: QuantConnect.Lean.Engine.HistoricalData.SubscriptionDataReaderHistoryProvider
20201002 15:20:21.976 Trace:: Brokerage: QuantConnect.Brokerages.Alpaca.AlpacaBrokerage
20201002 15:20:22.032 ERROR:: Engine.Run(): Error running algorithm System.ArgumentException: Brokerage must be of type BacktestingBrokerage for use wth the BacktestingTransactionHandler
at QuantConnect.Lean.Engine.TransactionHandlers.BacktestingTransactionHandler.Initialize(IAlgorithm algorithm, IBrokerage brokerage, IResultHandler resultHandler) in D:\Home\CodeBack\Lean\Engine\TransactionHandlers\BacktestingTransactionHandler.cs:line 47
at QuantConnect.Lean.Engine.Engine.Run(AlgorithmNodePacket job, AlgorithmManager manager, String assemblyPath, WorkerThread workerThread) in D:\Home\CodeBack\Lean\Engine\Engine.cs:line 291
20201002 15:20:22.065 Trace:: StopSafely(): waiting for 'Result Thread' thread to stop...
20201002 15:20:22.608 Trace:: LiveTradingResultHandler.Run(): Ending Thread...
20201002 15:20:22.618 Trace:: LiveTradingResultHandler.SendFinalResult(): Starting...
20201002 15:20:24.062 Trace:: LiveTradingResultHandler.SendFinalResult(): Finished storing results. Start sending...
20201002 15:20:24.063 Trace:: LiveTradingResultHandler.SendFinalResult(): Ended
20201002 15:20:24.064 Trace:: LiveTradingDataFeed.Exit(): Start. Setting cancellation token...
20201002 15:20:24.064 Trace:: BaseDataExchange(CustomDataExchange) Stopping...
20201002 15:20:24.064 Trace:: LiveTradingDataFeed.Exit(): Exit Finished.
Engine.Main(): Analysis Complete. Press any key to continue.
20201002 15:20:24.073 Trace:: BaseDataExchange(CustomDataExchange).ConsumeQueue(): Cancellation requested. Exiting...
Aaron Janeiro Stone
20201002 15:20:22.032 ERROR:: Engine.Run(): Error running algorithm System.ArgumentException: Brokerage must be of type BacktestingBrokerage for use wth the BacktestingTransactionHandler
By this error, I think you need to try the the live-alpaca environment instead of live-paper.
SherpaTrader
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!