The resource loading... loading...

Digital currency futures switching full-stock by full-stock plugin

Author: Inventors quantify - small dreams, Date: 2022-03-18 18:54:09
Tags:


function main() {
    var posType = [false, true][type]
    var name = exchange.GetName()
    if (name == "Futures_Binance") {
        exchange.IO("cross", posType)
    } else if (name == "Futures_HuobiDM") {
        exchange.IO("cross", posType)    
    } else if (name == "Futures_Bibox") {
        exchange.IO("cross", posType)        
    } else if (name == "Futures_Bitget") {
        exchange.IO("cross", posType)        
    } else if (name == "Futures_AOFEX") {
        exchange.IO("cross", posType)      
    } else if (name == "Futures_Pionex") {
        exchange.IO("cross", posType)      
    } else {
        throw "not support!"
    }
    return name + "切换 cross :" + posType
}

More