panic: decimal division by 0
goroutine 1 [running]:
github.com/shopspring/decimal.Decimal.QuoRem(0xc00044b520, 0xc0ffffffed, 0xc00044b500, 0xffffffed, 0x10, 0x0, 0x0, 0xc000026348, 0x1)
/Users/leereilly/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/shopspring/[email protected]/decimal.go:500 +0x375
github.com/shopspring/decimal.Decimal.DivRound(0xc00044b520, 0xc0ffffffed, 0xc00044b500, 0xffffffed, 0xc000000010, 0xc0ffffffed, 0x27b)
/Users/leereilly/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/shopspring/[email protected]/decimal.go:542 +0x6e
github.com/shopspring/decimal.Decimal.Div(...)
/Users/leereilly/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/shopspring/[email protected]/decimal.go:487
github.com/ericm/stonks/graph.GenerateGraph(0xc0000e4000, 0x50, 0xc, 0x0, 0x0, 0x0, 0x203000, 0xc0000e4000)
/private/tmp/stonks-20200630-96058-dp47eq/graph/graph.go:96 +0xc28
main.main.func1(0xc000160b00, 0xc000119610, 0x1, 0x1)
/private/tmp/stonks-20200630-96058-dp47eq/main.go:167 +0x259
github.com/spf13/cobra.(*Command).execute(0xc000160b00, 0xc000128030, 0x1, 0x1, 0xc000160b00, 0xc000128030)
/Users/leereilly/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/[email protected]/command.go:846 +0x29d
github.com/spf13/cobra.(*Command).ExecuteC(0xc000160b00, 0xc000132bb9, 0x151311d, 0x5)
/Users/leereilly/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/[email protected]/command.go:950 +0x349
github.com/spf13/cobra.(*Command).Execute(...)
/Users/leereilly/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/spf13/[email protected]/command.go:887
main.main()
/private/tmp/stonks-20200630-96058-dp47eq/main.go:184 +0x7b7