I'm trying to get back into Python, but during non-trading hours, the system writes a lot of "login error:not login", how can this be solved better?
Inventors quantify - small dreamsThis error should be a commodity futures strategy in the non-trading time problem, the general structure of the commodity futures strategy. What's going on? function MainLoop() { // A function that handles specific tasks // deal Main task I'm not sure. function main (() { The value of the variable is zero. while ((true) { status = exchange.IO (("status"); // API called to determine the connection status if ((status === true) { // Judge the status LogStatus (("connected!"); MainLoop ((); // After connecting to the exchange server, execute the main function. }else{ // If no connection is made, then the exchange.IO (("status") function returns false LogStatus (("Unconnected status!"); // Displays the unconnected status in the status bar. I'm not sure. Sleep ((1000); // need to have rounds of intervals to avoid too frequent access. I'm not sure. I'm not sure. What's going on? It is necessary to determine whether the transaction is connected to the market server; and preferably, whether the current operating varieties are within the transaction timeframe.
shenglinqianThank you!