Compare commits
	
		
			2 Commits
		
	
	
		
			c4a79b0f4c
			...
			068004ba14
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 068004ba14 | |||
| 287acc03eb | 
@@ -1,10 +1,10 @@
 | 
				
			|||||||
package main
 | 
					package main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import (
 | 
					import (
 | 
				
			||||||
	"deadbeef.codes/steven/ynab-portfolio-monitor/providers/bitcoin"
 | 
						"code.stevenpolley.net/steven/ynab-portfolio-monitor/providers/bitcoin"
 | 
				
			||||||
	"deadbeef.codes/steven/ynab-portfolio-monitor/providers/questrade"
 | 
						"code.stevenpolley.net/steven/ynab-portfolio-monitor/providers/questrade"
 | 
				
			||||||
	"deadbeef.codes/steven/ynab-portfolio-monitor/providers/staticjsonFinnhub"
 | 
						"code.stevenpolley.net/steven/ynab-portfolio-monitor/providers/staticjsonFinnhub"
 | 
				
			||||||
	"deadbeef.codes/steven/ynab-portfolio-monitor/providers/staticjsonYahooFinance"
 | 
						"code.stevenpolley.net/steven/ynab-portfolio-monitor/providers/staticjsonYahooFinance"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// AccountProvider is the base set of requirements to be implemented for any integration
 | 
					// AccountProvider is the base set of requirements to be implemented for any integration
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								go.mod
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
				
			|||||||
module deadbeef.codes/steven/ynab-portfolio-monitor
 | 
					module code.stevenpolley.net/steven/ynab-portfolio-monitor
 | 
				
			||||||
 | 
					
 | 
				
			||||||
go 1.22
 | 
					go 1.22
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.go
									
									
									
									
									
								
							@@ -7,7 +7,7 @@ import (
 | 
				
			|||||||
	"text/template"
 | 
						"text/template"
 | 
				
			||||||
	"time"
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	"deadbeef.codes/steven/ynab-portfolio-monitor/ynab"
 | 
						"code.stevenpolley.net/steven/ynab-portfolio-monitor/ynab"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
var (
 | 
					var (
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -63,6 +63,9 @@ func (p *Provider) GetBalances() ([]int, []string, error) {
 | 
				
			|||||||
		}(goErr)
 | 
							}(goErr)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	wg.Wait()
 | 
						wg.Wait()
 | 
				
			||||||
 | 
						if *goErr != nil {
 | 
				
			||||||
 | 
							return nil, nil, *goErr
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	fiatBalance, err := p.client.convertBTCToCAD(satoshiBalance)
 | 
						fiatBalance, err := p.client.convertBTCToCAD(satoshiBalance)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user