Mã trong diễn đàn học tập function CancelPendingOrders() { var orders = exchange.GetOrders (();// lấy tất cả các đơn đặt hàng chưa hoàn thành.
for (var j = 0; j < orders.length; j++) {
exchange.CancelOrder(orders[j].Id, orders[j]);}//该函数的用途为取消某个Id的订单。
}
Thực hiện báo cáo lỗi 2023-02-12 00:00:51 TypeError: cannot read property ‘length’ of null at CancelPendingOrders (FILE:41) at main (FILE:125) 2023-02-12 00:00:51 Futures_OKCoin GetOrders: 401: {“msg”:“APIKey does not match current environment.”,“code”:“50101”}
Xin lỗi vì những câu hỏi này.