आदेश जानकारी प्राप्त करने के लिए समस्याएं

लेखक:इज़्ज़्ज़्ज़, बनाया गयाः 2021-11-23 22:14:46, अद्यतन किया गयाः

//383375074660855808 var order = exchanges[0].GetOrder ((383375074660855808)
लॉग ((Id:,order.Id, Price: , order.Price, Amount: , order.Amount, DealAmount: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , order.DealAmount, Status: , order.Status, Type: , order.Type) जी हां. var orders = exchanges[0].GetOrders ((() लॉग ((आपका आदेश पूरा नहीं हुआ जानकारी, आईडीः, orders[0].Id, Price:, orders[0].Price, Amount:, orders[0].Amount, DealAmount:, orders[0].DealAmount, type:, orders[0].Type लॉग ((आपका आदेश 2 पूरा नहीं हुआ है, आईडीः आप, orders[1]। आईडी, आपPrice: आप, orders[1]। मूल्य, आपAmount: आप, orders[1]। DealAmount: , orders[1]. DealAmount, type: , orders[1]. प्रकार

     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 ((() लॉग (("orders=",orders) लॉग (("अधूरे आदेश की जानकारी, आईडीः", orders[0].Id, "Price:", orders[0].Price, "Amount:", orders[0].Amount, "DealAmount:", orders[0].DealAmount, "type:", orders[0].Type) लॉग (("अधूरे आदेश के बारे में जानकारी, आईडीः", orders[1].Id, "Price:", orders[1].Price, "Amount:", orders[1].Amount, "DealAmount:", orders[1].DealAmount, "type:", orders[1].Type) -------------------- त्रुटि संदेश जैसा कि ऊपर चित्रित है, समस्या का कोड यहाँ है, खाते में एकल है, id से पहले के आदेश परिभाषित किए गए हैं. प्रार्थना करना

छोटे सपनेcan't read property 'Id' of undefined at main (__FILE__:129) पंक्ति 129, नीति कोड की जाँच करें, Id चर नाम से पहले एक चर undefined है.

घासआदेशों की जांच करें, यदि रिक्त का उपयोग सीधे नहीं किया जा सकता है