Loading ...

python实盘测试

Author: Hukybo, Date: 2020-08-07 11:01:07
Tags:


function randomHexColor() {
    return '#' + ('00000' + (Math.random() * 0x1000000 << 0).toString(16)).substr(-6);
}

num = 0

function main() {
    while (1) {
        color = randomHexColor()
        if (num % 2 == 0) {
            color = color + 'ffffff';
        } else {
            color = color + '000000';
        }
        _C(exchange.SetContractType, 'rb2010')
        Log('GetAccount:', exchange.GetAccount(), color)
        Log('GetDepth:', exchange.GetDepth(), color)
        Log('GetRecords:', exchange.GetRecords(), color)
        num++
        Sleep(1000)
    }
}

More