mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
binance: change binance debug client env var name to debug-binance-client
This commit is contained in:
parent
88210fd27b
commit
4b0e721580
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue
Block a user