Hi guys
Whenever I try to run an algorithm like a basic template one in LEAN in Mac, I get the error from the code below (you must specify the port....etc.):
Does anyone know how to correct this??
Thanks!
Hugo
using System;
using System.Threading;
using System.Windows.Forms;
using QuantConnect.Views.WinForms;
namespace QuantConnect.Views
{
public class Program
{
[STAThread]
static void Main(string[] args)
{
if (args.Length != 1)
{
throw new Exception(
"Error: You must specify the port on which the application will open a TCP socket.");
}
var port = args[0];
var form = new LeanWinForm();
var desktopClient = new DesktopClient();
var thread = new Thread(() => desktopClient.Run(port, form));
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
Application.Run(form);
// The above code is blocking.
// Once it finishes, close the NetMQ client
desktopClient.StopServer();
}
}
}
Jack Simonson
Hi Hugo,
It appears that you're trying to run the local desktop UX. Unfortunately it doesn't work in any OS other than Windows. However, we have deprecated it and we are working for a new UX based on Electron.
Hugo Lu
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!