Type/to search

每1分钟统计各个平台间的差价(by JackConan)

Tool
0
Follow
3
Followers

统计各个平台间的最大差价;
如果要打印当时各交易所的市场行情,可以把 //printCurPrice(); 前面的注释//去掉;

Source
JavaScript
var maxSpace = 0;

function adjustFloat(v) {
    return Math.floor(v*1000)/1000;
}

function printCurPrice() {
    for (var i = 0; i < exchanges.length; i++) {
        Log(exchanges[i].GetName(),'=',exchanges[i].GetTicker());
    }
}
Comment
All comments (1)

    Hello, what are the platforms you are comparin?

    9 years ago
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)