Merge pull request #1211 from c9s/improve/concurrent-stop-loss

CHORE: bbgo: rename env ENABLE_MARKET_TRADE_STOP to DISABLE_MARKET_TRADE_STOP
This commit is contained in:
c9s 2023-06-29 14:38:25 +08:00 committed by GitHub
commit 9254fb3b18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}
}