binance: change binance debug client env var name to debug-binance-client

This commit is contained in:
c9s 2022-01-10 16:37:41 +08:00
parent 88210fd27b
commit 4b0e721580

View File

@ -72,7 +72,7 @@ var timeSetter sync.Once
func New(key, secret string) *Exchange {
var client = binance.NewClient(key, secret)
client.HTTPClient = &http.Client{Timeout: 15 * time.Second}
client.Debug = viper.GetBool("debug")
client.Debug = viper.GetBool("debug-binance-client")
var futuresClient = binance.NewFuturesClient(key, secret)
futuresClient.HTTPClient = &http.Client{Timeout: 15 * time.Second}