Expand RetrieveConfigCurrencyPairs to support different asset types

This commit is contained in:
Adrian Gallagher
2019-08-27 08:54:10 +10:00
parent f6afeee800
commit 5e9d13f7be
4 changed files with 18 additions and 7 deletions

View File

@@ -8,6 +8,7 @@ import (
"github.com/thrasher-corp/gocryptotrader/config"
"github.com/thrasher-corp/gocryptotrader/currency"
"github.com/thrasher-corp/gocryptotrader/exchanges/asset"
"github.com/thrasher-corp/gocryptotrader/exchanges/bitfinex"
"github.com/thrasher-corp/gocryptotrader/portfolio"
)
@@ -95,7 +96,7 @@ func main() {
Subtotal float64
}
cfg.RetrieveConfigCurrencyPairs(true)
cfg.RetrieveConfigCurrencyPairs(true, asset.Spot)
portfolioMap := make(map[currency.Code]PortfolioTemp)
total := float64(0)