Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1017 Bytes

数字货币期货切换全仓逐仓插件.md

File metadata and controls

52 lines (35 loc) · 1017 Bytes

Name

数字货币期货切换全仓逐仓插件

Author

小小梦

Strategy Arguments

Argument Default Description
type 0 全仓/逐仓模式: 逐仓

Source (javascript)

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
}

Detail

https://www.fmz.com/strategy/351758

Last Modified

2023-09-06 10:36:47