daily progress build

This commit is contained in:
Adrian Gallagher
2019-06-06 17:20:40 +10:00
parent 26795508ff
commit bd8dc47c38
14 changed files with 261 additions and 121 deletions

View File

@@ -26,6 +26,14 @@ import (
"github.com/thrasher-/gocryptotrader/utils"
)
// IsOnline returns whether or not the engine has Internet connectivity
func IsOnline() bool {
if Bot.Connectivity == nil {
log.Warnf("IsOnline called but Bot.Connectivity is nil")
}
return Bot.Connectivity.IsConnected()
}
// GetAvailableExchanges returns a list of enabled exchanges
func GetAvailableExchanges() []string {
var enExchanges []string