0
tập trung vào
0
Người theo dõi

Lưu ý khi sử dụng exchange.GetPosition(): trước tiên hãy kiểm tra xem đó có phải là một mảng rỗng không

Được tạo ra trong: 2018-11-07 08:17:28, cập nhật trên: 2019-04-17 15:52:12
comments   2
hits   2100
    exchange.SetTimeout(3000);
    exchange.SetContractType("XBTUSD");

    //取得第一次币量
    position = _C(exchange.GetPosition);
    last_Amount = position[0].Amount; //持币数量  
    hold_price = Math.round(position[0].Price); //持币均价
    
    
    TypeError: cannot read property 'Amount' of undefined at main (__FILE__:38)