Các vấn đề về thông tin đặt hàng

Tác giả:Đúng rồi., Tạo: 2021-11-23 22:14:46, Cập nhật:

//383375074660855808 var order = exchanges[0].GetOrder ((383375074660855808)
Log ((Id:,order.IdPrice: , order.Price, Amount: , order.Amount, DealAmount: , order.DealAmount, Status: order.Status, Type: order.Type) Vâng. Vâng. var orders = exchanges[0].GetOrders ((() Log (( chưa hoàn thành thông tin đặt hàng một, ID:, orders[0].Id, Price:, orders[0].Price, Amount:, orders[0].Amount, DealAmount:, orders[0].DealAmount, type:, orders[0].Type Log (( không hoàn thành thông tin đặt hàng thứ hai, ID:, orders[1].Id, Price:, orders[1].Price, Amount:, orders[1]. DealAmount: , orders[1].DealAmount, type: , orders[1].Type

     exchanges[0].GetOrder可以返回信息
     Id: 383375074660855808 Price: 0 Amount: 1 DealAmount: 1 Status: 1 Type: 0
     exchanges[0].GetOrders()却返回错误
     TypeError: cannot read property 'Id' of undefined at main (__FILE__:129)
     
     请问这是什么原因啊?Id需要定义吗/xiexie

Thêm nữa

Đúng rồi./upload/asset/23c31a045d4345042eab9.jpg buyOrderId = openLong ((-1, amount) // mua nhiều vị trí bị treo -1 đại diện cho giá thị trường buyOrderId = openLong ((-1, amount) // mua nhiều vị trí bị treo -1 đại diện cho giá thị trường var orders = exchanges[0].GetOrders ((() Log (("orders=",orders) Log (("Không hoàn thành thông tin đặt hàng một, ID:", orders[0].Id, "Price:", orders[0].Price, "Amount:", orders[0].Amount, "DealAmount:", orders[0].DealAmount, "type:", orders[0].Type) Log (("Thông tin chưa hoàn thành lệnh thứ hai, ID:", orders[1].Id, "Price:", orders[1].Price, "Amount:", orders[1].Amount, "DealAmount:", orders[1].DealAmount, "type:", orders[1]. --------------------------- Thông tin sai như hình trên. Mã gây ra vấn đề ở đây, tài khoản có đơn vị ah, các lệnh trước id đã được định nghĩa ah................................................................................................................................................................................................................................ Lời cầu nguyện

Giấc mơ nhỏcannot read property 'Id' of undefined at main (__FILE__:129) Không thể đọc thuộc tính 'Id' của undefined at main (__FILE__:129) Dòng 129, kiểm tra mã chính sách, biến trước tên biến Id không được định nghĩa.

Cỏ nhỏKiểm tra các lệnh trước, nếu không có không thể sử dụng trực tiếp