Skip to content

Commit

Permalink
Reverse chart and change params to start-date and end-date
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaslek committed Oct 3, 2023
1 parent 7354d6f commit 6406451
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions openbb_terminal/etf/etf_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,15 +653,15 @@ def call_holding_perf(self, other_args: List[str]):
)
parser.add_argument(
"-s",
"--start",
"--start-date",
type=valid_date,
default=(datetime.now().date() - timedelta(days=366)),
dest="start",
help="The starting date (format YYYY-MM-DD) to get each holding's price",
)
parser.add_argument(
"-e",
"--end",
"--end-date",
type=valid_date,
default=datetime.now().date(),
dest="end",
Expand Down
2 changes: 1 addition & 1 deletion openbb_terminal/etf/fmp_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def view_etf_holdings_performance(
export: str
Type of format to export data.
"""
data = fmp_model.get_holdings_pct_change(ticker, start_date, end_date, limit)
data = fmp_model.get_holdings_pct_change(ticker, start_date, end_date, limit)[::-1]

if raw:
print_rich_table(
Expand Down

0 comments on commit 6406451

Please sign in to comment.