diff --git a/assets/screenshot.gif b/assets/screenshot.gif index 6e9487c..04931e1 100644 Binary files a/assets/screenshot.gif and b/assets/screenshot.gif differ diff --git a/bin/cointop b/bin/cointop index b4645e9..e2cadd2 100755 Binary files a/bin/cointop and b/bin/cointop differ diff --git a/cointop/chart.go b/cointop/chart.go index 1f074e6..2365d1f 100644 --- a/cointop/chart.go +++ b/cointop/chart.go @@ -34,7 +34,7 @@ func (ct *Cointop) chartPoints(maxX int, coin string) error { now := time.Now() secs := now.Unix() - start := secs - oneDay + start := secs - oneWeek end := secs _ = coin @@ -52,7 +52,7 @@ func (ct *Cointop) chartPoints(maxX int, coin string) error { } */ for i := range graphData.MarketCapByAvailableSupply { - data = append(data, graphData.MarketCapByAvailableSupply[i][1]) + data = append(data, graphData.MarketCapByAvailableSupply[i][1]/1E9) } chart.Data = data termui.Body = termui.NewGrid() diff --git a/cointop/market.go b/cointop/market.go index 58ad0f5..c3ba57f 100644 --- a/cointop/market.go +++ b/cointop/market.go @@ -14,6 +14,7 @@ func (ct *Cointop) updateMarket() error { if err != nil { return err } - fmt.Fprintln(ct.marketview, pad.Right(fmt.Sprintf("%s Total Market Cap: %s • 24H Volume: %s • BTC Dominance: %.2f%% • Active Currencies: %s • Active Assets: %s • Active Markets: %s", color.Cyan("cointop"), color.WhiteBold(humanize.Commaf(market.TotalMarketCapUSD)), humanize.Commaf(market.Total24HVolumeUSD), market.BitcoinPercentageOfMarketCap, humanize.Comma(int64(market.ActiveCurrencies)), humanize.Comma(int64(market.ActiveAssets)), humanize.Comma(int64(market.ActiveMarkets))), maxX, " ")) + timeframe := "7 Day" + fmt.Fprintln(ct.marketview, pad.Right(fmt.Sprintf("%s Chart: %s • Total Market Cap: %s • 24H Volume: %s • BTC Dominance: %.2f%% • Active Currencies: %s • Active Markets: %s", color.Cyan("cointop"), timeframe, color.WhiteBold(humanize.Commaf(market.TotalMarketCapUSD)), humanize.Commaf(market.Total24HVolumeUSD), market.BitcoinPercentageOfMarketCap, humanize.Comma(int64(market.ActiveCurrencies)), humanize.Comma(int64(market.ActiveMarkets))), maxX, " ")) return nil }