From a67b3b54b58275bdbb322885c475a79b54383a64 Mon Sep 17 00:00:00 2001 From: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com> Date: Tue, 29 Mar 2022 22:08:35 +0700 Subject: [PATCH] Fix small rsi bug (#1588) * Add y labels to all bt commands * Fix reports bug * Update crypto market * Update crypto market * Remove gst folders and remaining files * Add back crypto market * Update report controller * Remove bt view from gst Co-authored-by: didierlopes.eth --- openbb_terminal/jupyter/reports/crypto_market.ipynb | 5 ++++- openbb_terminal/jupyter/reports/reports_controller.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/openbb_terminal/jupyter/reports/crypto_market.ipynb b/openbb_terminal/jupyter/reports/crypto_market.ipynb index 41f571e9280..fca312b620e 100644 --- a/openbb_terminal/jupyter/reports/crypto_market.ipynb +++ b/openbb_terminal/jupyter/reports/crypto_market.ipynb @@ -61,10 +61,13 @@ "outputs": [], "source": [ "from openbb_terminal.cryptocurrency import cryptocurrency_helpers\n", - "\n", + "import pandas as pd \n", "coin_map_df = (\n", " cryptocurrency_helpers.prepare_all_coins_df().set_index(\"Symbol\").loc[\"btc\"]\n", ")\n", + "\n", + "coin_map_df = (coin_map_df.iloc[0] if isinstance(coin_map_df, pd.DataFrame) else coin_map_df)\n", + "\n", "cryptocurrency_helpers.plot_chart(\n", " coin=\"btc-bitcoin\", source=\"cp\", currency=\"USD\", days=60, coin_map_df=coin_map_df\n", ")" diff --git a/openbb_terminal/jupyter/reports/reports_controller.py b/openbb_terminal/jupyter/reports/reports_controller.py index 82c2d4808df..44d21cb2b7e 100644 --- a/openbb_terminal/jupyter/reports/reports_controller.py +++ b/openbb_terminal/jupyter/reports/reports_controller.py @@ -133,7 +133,7 @@ Select one of the following reports:[/info][cmds] (known_args, other_args) = self.parser.parse_known_args(an_input.split()) - if not other_args and an_input in ("2", "3", "5"): + if not other_args and an_input in ("1", "3", "4"): console.print("[red]Error: No ticker provided\n[/red]") logger.error("Exception: No ticker provided") return self.queue