The resource loading... loading...

Exchange.GetOrders is reported to have an error

Author: lzhqlj, Created: 2023-02-12 00:01:57, Updated:

Code in the learning forum function CancelPendingOrders (()) { var orders = exchange.GetOrders (();// retrieves all unfinished orders.

for (var j = 0; j < orders.length; j++) {
      exchange.CancelOrder(orders[j].Id, orders[j]);}//该函数的用途为取消某个Id的订单。

}

Execution of error reports TypeError: cannot read property length of null at CancelPendingOrders (FILE:41) at main (FILEThe Bible says: "There is no one like him". 2023-02-12 00:00:51 Futures_OKCoin error GetOrders: 401: {msg: APIKey does not match current environment.,code:50101}

What's the reason for that?


More

lzhqljThe problem is solved. No setup for the analog drive.

Inventors quantify - small dreamsOKX uses the ```exchange.IO (("simulate", true) ``` setting.