diff --git a/openbb_terminal/cryptocurrency/overview/overview_controller.py b/openbb_terminal/cryptocurrency/overview/overview_controller.py index 45a5033067a..35faae367a6 100644 --- a/openbb_terminal/cryptocurrency/overview/overview_controller.py +++ b/openbb_terminal/cryptocurrency/overview/overview_controller.py @@ -185,7 +185,7 @@ class OverviewController(BaseController): prog="hm", add_help=False, formatter_class=argparse.ArgumentDefaultsHelpFormatter, - description="""Display cryptocurrencies heatmap [Source: https://coingecko.com] + description="""Display cryptocurrencies heatmap with daily percentage change [Source: https://coingecko.com] Accepts --category or -c to display only coins of a certain category (default no category to display all coins ranked by market cap). You can look on only top N number of records with --limit. diff --git a/openbb_terminal/cryptocurrency/overview/pycoingecko_view.py b/openbb_terminal/cryptocurrency/overview/pycoingecko_view.py index bfa7c0d625c..bfd47c9b21f 100644 --- a/openbb_terminal/cryptocurrency/overview/pycoingecko_view.py +++ b/openbb_terminal/cryptocurrency/overview/pycoingecko_view.py @@ -57,6 +57,9 @@ def display_crypto_heatmap( if df.empty: console.print("\nNo cryptocurrencies found\n") else: + df = df.fillna( + 0 + ) # to prevent errors with rounding when values aren't available max_abs = max( -df.price_change_percentage_24h_in_currency.min(), df.price_change_percentage_24h_in_currency.max(),