Package currency

This commit is contained in:
Adrian Gallagher
2017-03-28 15:52:16 +11:00
parent aeb327c80c
commit a9d9ee54f7
8 changed files with 105 additions and 80 deletions

View File

@@ -11,6 +11,7 @@ import (
"github.com/thrasher-/gocryptotrader/common"
"github.com/thrasher-/gocryptotrader/config"
"github.com/thrasher-/gocryptotrader/currency"
"github.com/thrasher-/gocryptotrader/exchanges"
"github.com/thrasher-/gocryptotrader/exchanges/anx"
"github.com/thrasher-/gocryptotrader/exchanges/bitfinex"
@@ -135,12 +136,15 @@ func main() {
setupBotExchanges()
err = RetrieveConfigCurrencyPairs()
bot.config.RetrieveConfigCurrencyPairs()
err = currency.SeedCurrencyData(currency.BaseCurrencies)
if err != nil {
log.Fatalf("Fatal error retrieving config currency AvailablePairs. Error: ", err)
log.Fatalf("Fatal error retrieving config currencies. Error: ", err)
}
log.Println("Successfully retrieved config currencies.")
go StartPortfolioWatcher()
if bot.config.Webserver.Enabled {