Engine improvements

This commit is contained in:
Adrian Gallagher
2019-06-10 20:02:09 +10:00
parent 04c7c4895f
commit f777e68716
88 changed files with 2037 additions and 1413 deletions

View File

@@ -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
}