Type/to search
33
Follow
63
Followers
주문 ID를 기준으로 평균 거래 가격을 구하는 방법은 무엇인가요?
FAQ
Created 2016-05-07 22:45:13  
 2
 2134

JSON 함수를 사용해야 할 것 같아서, 3줄만 쓰면 됩니다. 네 번째 줄을 추가하세요:
var id = exchange.Buy(3000,0.01);
var p =exchange.GetOrder(id);
var obj = JSON.parse(exchanges[0].GetRawJSON()); // 마지막 API 호출에 대한 자세한 사항
var avprice 。。。。。。。

Related Recommendations
Comment
All comments (2)

    var t = obj.orders[0].avg_price;//现货
    var tt = obj.orders[0].price_avg; // 期货

    10 years ago

    var t = obj.results[0].payload[0].avg_price; 答案有了,谢谢我自己。

    10 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)