bbgo/pkg/util/paper_trade.go

7 lines
98 B
Go
Raw Permalink Normal View History

package util
func IsPaperTrade() bool {
v, ok := GetEnvVarBool("PAPER_TRADE")
return ok && v
}