From 81f18cde7326e78ec7e5dc4fd102888cbae78678 Mon Sep 17 00:00:00 2001 From: Jamie Date: Thu, 25 Mar 2021 08:33:59 -0400 Subject: [PATCH] Added a default load data for stocks and edited good friday list --- gamestonk_terminal/helper_funcs.py | 20 ++++++++++---------- gamestonk_terminal/main_helper.py | 1 + 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/gamestonk_terminal/helper_funcs.py b/gamestonk_terminal/helper_funcs.py index 338b68b8ddc..8676f149b46 100644 --- a/gamestonk_terminal/helper_funcs.py +++ b/gamestonk_terminal/helper_funcs.py @@ -90,16 +90,16 @@ def us_market_holidays(years) -> list: 2018: "2018-03-30", 2019: "2019-04-19", 2020: "2020-04-10", - 2021: "2020-04-02", - 2022: "2020-04-15", - 2023: "2020-04-07", - 2024: "2020-03-29", - 2025: "2020-04-18", - 2026: "2020-04-03", - 2027: "2020-03-26", - 2028: "2020-04-14", - 2029: "2020-03-30", - 2030: "2020-04-19", + 2021: "2021-04-02", + 2022: "2022-04-15", + 2023: "2023-04-07", + 2024: "2024-03-29", + 2025: "2025-04-18", + 2026: "2026-04-03", + 2027: "2027-03-26", + 2028: "2028-04-14", + 2029: "2029-03-30", + 2030: "2030-04-19", } marketHolidays_and_obsrvd = marketHolidays + [ holiday + " (Observed)" for holiday in marketHolidays diff --git a/gamestonk_terminal/main_helper.py b/gamestonk_terminal/main_helper.py index f2d103ccab4..7bff6997eb6 100644 --- a/gamestonk_terminal/main_helper.py +++ b/gamestonk_terminal/main_helper.py @@ -119,6 +119,7 @@ def load(l_args, s_ticker, s_start, s_interval, df_stock): "-s", "--start", type=valid_date, + default="2015-01-01", dest="s_start_date", help="The starting date (format YYYY-MM-DD) of the stock", )