Reverse chart and change params to start-date and end-date

This commit is contained in:
James Maslek
2023-10-03 10:09:47 -04:00
parent 7354d6f8a1
commit 6406451d73
2 changed files with 3 additions and 3 deletions

View File

@@ -653,7 +653,7 @@ class ETFController(BaseController):
)
parser.add_argument(
"-s",
"--start",
"--start-date",
type=valid_date,
default=(datetime.now().date() - timedelta(days=366)),
dest="start",
@@ -661,7 +661,7 @@ class ETFController(BaseController):
)
parser.add_argument(
"-e",
"--end",
"--end-date",
type=valid_date,
default=datetime.now().date(),
dest="end",

View File

@@ -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(