mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-06 15:10:59 +00:00
Engine improvements
This commit is contained in:
@@ -197,7 +197,7 @@ func (e *ExchangeCurrencyPairSyncer) update(exchangeName string, p currency.Pair
|
||||
return
|
||||
}
|
||||
default:
|
||||
log.Warnf("ExchangeCurrencyPairSyncer: unkown sync item %v", syncType)
|
||||
log.Warnf("ExchangeCurrencyPairSyncer: unknown sync item %v", syncType)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -267,10 +267,6 @@ func (e *ExchangeCurrencyPairSyncer) worker() {
|
||||
continue
|
||||
}
|
||||
|
||||
if Bot.Exchanges[x].GetName() == "BTCC" {
|
||||
continue
|
||||
}
|
||||
|
||||
exchangeName := Bot.Exchanges[x].GetName()
|
||||
assetTypes := Bot.Exchanges[x].GetAssetTypes()
|
||||
supportsREST := Bot.Exchanges[x].SupportsREST()
|
||||
@@ -456,17 +452,13 @@ func (e *ExchangeCurrencyPairSyncer) Start() {
|
||||
continue
|
||||
}
|
||||
|
||||
if Bot.Exchanges[x].GetName() == "BTCC" {
|
||||
continue
|
||||
}
|
||||
|
||||
exchangeName := Bot.Exchanges[x].GetName()
|
||||
supportsWebsocket := Bot.Exchanges[x].SupportsWebsocket()
|
||||
assetTypes := Bot.Exchanges[x].GetAssetTypes()
|
||||
supportsREST := Bot.Exchanges[x].SupportsREST()
|
||||
|
||||
if !supportsREST && !supportsWebsocket {
|
||||
log.Warnf("Loaded exchange %s does not support REST or Websocket", exchangeName)
|
||||
log.Warnf("Loaded exchange %s does not support REST or Websocket.", exchangeName)
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user