Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…BBTerminal into hotfix/#3442
  • Loading branch information
colin99d committed Mar 17, 2023
2 parents 5351ee5 + f8828f9 commit 32ae71a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
17 changes: 8 additions & 9 deletions openbb_terminal/dashboards/voila/crypto.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
" + \"BTCB,HBAR,EGLD,ICP,SAND,XMR,WAVES,VET,\"\n",
" + \"APE,FIL,FTM,AXS,THETA,KLAY,XTZ,RUNE\"\n",
").split(\",\")\n",
"exchange_rates = {}\n",
"?openbb.crypto.load"
"exchange_rates = {}"
]
},
{
Expand All @@ -60,7 +59,7 @@
" current_df = openbb.crypto.load(\n",
" symbol=coin,\n",
" interval=\"1440\",\n",
" source=\"CCXT\",\n",
" source=\"YahooFinance\",\n",
" )\n",
" price_color = \"neutral_color\"\n",
" if current_df[\"Close\"].iloc[-1] > current_df[\"Close\"].iloc[-2]:\n",
Expand Down Expand Up @@ -89,17 +88,17 @@
" price, price_color = get_exchange_rate(coin=coin)\n",
" except Exception as e:\n",
" price, price_color = \"-------\", \"neutral_color\"\n",
" widgets = list(grid.children)\n",
" widgets.append(\n",
" widget_list = list(grid.children)\n",
" widget_list.append(\n",
" ipw.HTML(\n",
" api.widgets.price_card(\n",
" widgets.price_card(\n",
" ticker=coin,\n",
" price=price,\n",
" price_color=price_color,\n",
" )\n",
" )\n",
" )\n",
" grid.children = tuple(widgets)"
" grid.children = tuple(widget_list)"
]
},
{
Expand Down Expand Up @@ -133,7 +132,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.9.6 ('obb')",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -147,7 +146,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.6"
"version": "3.10.9"
},
"voila": {
"theme": "dark"
Expand Down
5 changes: 5 additions & 0 deletions openbb_terminal/reports/reports_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ def run_report(self, report_name: str, other_args: List[str]):
ns_parser = self.parse_simple_args(parser, other_args)

if ns_parser:
if report_name == "equity" and "." in ns_parser.symbol:
console.print(
"[red]Cannot currently handle tickers with a '.' in them[/red]\n"
)
return
cfg.LOGGING_SUPPRESS = True
parameters = vars(ns_parser)
parameters.pop("help")
Expand Down

0 comments on commit 32ae71a

Please sign in to comment.