-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactored quote command #3304
Refactored quote command #3304
Conversation
from openbb_terminal.helper_funcs import print_rich_table | ||
|
||
|
||
def display_quote(symbol: str) -> pd.DataFrame: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docstring
|
||
quote_df = quote_df.set_index("Symbol") | ||
|
||
quote_data = transpose(quote_df) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would make me happier if you made this quote_df.T and get rid of the import
|
||
|
||
def load_quote(symbol: str) -> pd.DataFrame: | ||
"""Ticker quote. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ticker quote [Source: YahooFInance]
Description
Fixes #3053
Refactors the stocks/quote command to follow MVC, only adds the model to the SDK since the view just shows the same thing. The view would also have the same double showing issue since it needs to print and return the data.
How has this been tested?
python terminal.py stocks/quote aapl
Checklist:
Others