portfolio: Fix CryptoID balance issue and assertify tests (#1861)

* portfolio: Fix CryptoID balance issue and assertify tests

* portfolio: Expand context usage, enhance tests and a few other minor improvements

* portfolio: Further improvements and enhance common.IsValidCryptoAddress

* config, portfolio: Use v6.DefaultConfig, switch to context.WithCancel
This commit is contained in:
Adrian Gallagher
2025-03-28 12:41:01 +11:00
committed by GitHub
parent 06afde1460
commit cc05f7e6fd
16 changed files with 723 additions and 845 deletions

View File

@@ -77,8 +77,7 @@ func main() {
log.Println("Loaded config file.")
displayCurrency = cfg.Currency.FiatDisplayCurrency
port := portfolio.Base{}
port.Seed(cfg.Portfolio)
port := cfg.Portfolio
result := port.GetPortfolioSummary()
log.Println("Fetched portfolio data.")