bbgo: rename env ENABLE_MARKET_TRADE_STOP to DISABLE_MARKET_TRADE_STOP

since we've set it default to true
This commit is contained in:
c9s 2023-06-29 14:26:12 +08:00
parent 3da145877f
commit c6f7723620
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -14,8 +14,8 @@ import (
var enableMarketTradeStop = true
func init() {
if v, defined := util.GetEnvVarBool("ENABLE_MARKET_TRADE_STOP"); defined {
enableMarketTradeStop = v
if v, defined := util.GetEnvVarBool("DISABLE_MARKET_TRADE_STOP"); defined && v {
enableMarketTradeStop = false
}
}