Added a default load data for stocks and edited good friday list

This commit is contained in:
Jamie
2021-03-25 08:33:59 -04:00
parent 9613986e10
commit 81f18cde73
2 changed files with 11 additions and 10 deletions

View File

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

View File

@@ -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",
)