mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 20:42:26 +00:00
Reverse chart and change params to start-date and end-date
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user