অর্ডার সংক্রান্ত তথ্য পেতে সমস্যা

লেখক:ইজক্লজ, সৃষ্টিঃ ২০২১-১১-২৩ ২২ঃ১৪ঃ৪৬, আপডেটঃ

//383375074660855808 var order = exchanges[0].GetOrder ((383375074660855808)
লগ ((Id:,order.IdPrice: , order.Price, Amount: , order.Amount, DealAmount: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , order.DealAmount, Status: , order.Status, Type: , order.Type) উঃ হ্যাঁ। var orders = exchanges[0].GetOrders ((() Log ((আপনি অর্ডারটি সম্পূর্ণ করেননি, ID:, orders[0].Id, Price:, orders[0].Price, Amount:, orders[0].Amount, DealAmount:, orders[0].DealAmount, type:, orders[0].Type Log ((আপনি দ্বিতীয় অর্ডারটি সম্পূর্ণ করেননি, আইডিঃ আপ, 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

আরো

ইজক্লজ/upload/asset/23c31a045d4345042eab9.jpg buyOrderId = openLong ((-1, amount) // খোলা একাধিক পজিশনের ক্রয় -1 বাজার মূল্যের প্রতিনিধিত্ব করে buyOrderId = openLong ((-1, amount) // খোলা একাধিক পজিশনের ক্রয় -1 বাজার মূল্যের প্রতিনিধিত্ব করে var orders = exchanges[0].GetOrders ((() Log (("orders=",orders) Log (("অর্ডার ১ সম্পূর্ণ হয়নি, আইডিঃ", orders[0].Id, "Price:", orders[0].Price, "Amount:", orders[0].Amount, "DealAmount:", orders[0].DealAmount, "type:", orders[0].Type) Log (("অর্ডার ২-এর তথ্য, আইডিঃ", orders[1].Id, "Price:", orders[1].Price, "Amount:", orders[1].Amount, "DealAmount:", orders[1].DealAmount, "type:", orders[1].Type) ------------------------এটা কি ঠিক? ভুল বার্তাটি উপরের চিত্রের মতো, প্রশ্নের কোডটি এখানে, অ্যাকাউন্টে একটি একক আছে, আইডি এর আগে অর্ডারগুলি সংজ্ঞায়িত করা হয়েছে। উপদেশ

ছোট্ট স্বপ্নcan't read property 'Id' of undefined at main (__FILE__:129) অপরিশোধিত ফাইলের আইডি 129 লাইন, চেক পলিসি কোড, Id নামের আগে ভেরিয়েবলটি undefined।

ঘাসঅর্ডার পরীক্ষা করুন, যদি শূন্য সরাসরি ব্যবহার করা যাবে না