Works for other brokerages but fails if just using it as a data source.
20230317 19:22:23.933 ERROR:: Algorithm.Initialize() Error: The given key 'terminal-link-environment' was not present
in the dictionary. Stack Trace: The given key 'terminal-link-environment' was not present in the dictionary.
The given key 'terminal-link-environment' was not present in the dictionary.
20230317 19:22:23.937 TRACE:: StopSafely(): Waiting for 'Result Thread' thread to stop...
20230317 19:22:23.939 DEBUG:: LiveTradingResultHandler.Update(): Algorithm not yet initialized.
20230317 19:22:23.939 TRACE:: LiveTradingResultHandler.Run(): Ending Thread...
20230317 19:22:23.942 TRACE:: LiveTradingResultHandler.SendFinalResult(): Starting...
20230317 19:22:23.943 DEBUG:: LiveTradingResultHandler.Update(): status update start...
20230317 19:22:23.945 ERROR:: LiveTradingResultHandler.StoreStatusFile(): Error storing status update
System.NullReferenceException: Object reference not set to an instance of an object.
at QuantConnect.Lean.Engine.Results.LiveTradingResultHandler.StoreStatusFile(SortedDictionary2 runtimeStatistics,
Dictionary2 holdings, Dictionary2 chartComplete, Dictionary2 algorithmState, SortedDictionary2 profitLoss, Dictionary2
serverStatistics, StatisticsResults statistics) in
/LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Engine/Results/LiveTradingResultHandler.cs:line 429
lean live TerminalLinkTest --brokerage "Paper Trading" --data-feed "Terminal Link" --live-cash-balance USD:10000,EUR:10 --live-holdings "SPY:SPY R735QTJ8XC9X:1:380,AAPL:AAPL R735QTJ8XC9X:10:200" --terminal-link-environment Beta --terminal-link-server-host localhost --terminal-link-server-port 8194 --terminal-link-emsx-user-time-zone "America/New_York" --terminal-link-emsx-broker BMTB --terminal-link-emsx-account ACCOUNT --verbose
Works for other brokerages but fails if just using it as a data source.