mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
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:
parent
3da145877f
commit
c6f7723620
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user