There's a problem with the instructional policy code in the square, but there's no description in the API documentation.

Author: huangqingchi, Created: 2024-04-12 20:29:25, Updated:

// Function function: Removes all pending lists from the current transaction pair function cancelAll ((e) { is used. while (true) { var orders = _C (e. GetOrders) if (orders.length == 0) { break } else { for (var i = 0 ; i < orders.length ; i++) { e.CancelOrder ((orders[i].Id, orders[i]) is the name of the command. Sleep ((500) is a I'm not sure. I'm not sure. Sleep ((500) is a I'm not sure. I'm not sure.

This code doesn't know what var orders = _C ((e.GetOrders) means. I don't know what orders.length means, nor is it in the API documentation.


More

huangqingchiSo the specific question is why is there an e?

The Little DreamI'm not being polite.

huangqingchiThank you.

The Little DreamThis is not a code problem, you may not be familiar with the JavaScript programming language. e is the parameter of this function. length is an attribute of the data type of the array, indicating the length of the array. These are related to the JavaScript language.