0
집중하다
0
수행원

exchange.GetPosition() 사용에 대한 참고사항: 먼저 빈 배열인지 확인하세요

만든 날짜: 2018-11-07 08:17:28, 업데이트 날짜: 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)