Compare commits

...

2 Commits

Author SHA1 Message Date
068004ba14 bitcoin address failure - actually check the error
All checks were successful
continuous-integration/drone/push Build is passing
2024-11-11 06:25:26 -07:00
287acc03eb change from deadbeef.codes to code.stevenpolley.net 2024-11-11 06:24:37 -07:00
4 changed files with 9 additions and 6 deletions

View File

@ -1,10 +1,10 @@
package main
import (
"deadbeef.codes/steven/ynab-portfolio-monitor/providers/bitcoin"
"deadbeef.codes/steven/ynab-portfolio-monitor/providers/questrade"
"deadbeef.codes/steven/ynab-portfolio-monitor/providers/staticjsonFinnhub"
"deadbeef.codes/steven/ynab-portfolio-monitor/providers/staticjsonYahooFinance"
"code.stevenpolley.net/steven/ynab-portfolio-monitor/providers/bitcoin"
"code.stevenpolley.net/steven/ynab-portfolio-monitor/providers/questrade"
"code.stevenpolley.net/steven/ynab-portfolio-monitor/providers/staticjsonFinnhub"
"code.stevenpolley.net/steven/ynab-portfolio-monitor/providers/staticjsonYahooFinance"
)
// AccountProvider is the base set of requirements to be implemented for any integration

2
go.mod
View File

@ -1,4 +1,4 @@
module deadbeef.codes/steven/ynab-portfolio-monitor
module code.stevenpolley.net/steven/ynab-portfolio-monitor
go 1.22

View File

@ -7,7 +7,7 @@ import (
"text/template"
"time"
"deadbeef.codes/steven/ynab-portfolio-monitor/ynab"
"code.stevenpolley.net/steven/ynab-portfolio-monitor/ynab"
)
var (

View File

@ -63,6 +63,9 @@ func (p *Provider) GetBalances() ([]int, []string, error) {
}(goErr)
}
wg.Wait()
if *goErr != nil {
return nil, nil, *goErr
}
fiatBalance, err := p.client.convertBTCToCAD(satoshiBalance)
if err != nil {