diff --git a/docs/changelog.rst b/docs/changelog.rst index 1e21987..781fb6a 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -6,6 +6,16 @@ Release History .. towncrier release notes start +Nasdaq_100_Ticker_History 2022.1.0 (2021-12-22) +============================================ + +Features +-------- + +- Provide support for the usual end-of-year Nasdaq 100 updates + - Using as source data the wikipedia page: `Changes in 2021 ` +- Change the versioning scheme: the major version is the calendar year + Nasdaq_100_Ticker_History 0.5.0 (2021-10-02) ============================================ @@ -21,7 +31,7 @@ Nasdaq_100_Ticker_History 0.4.1 (2021-08-31) Features -------- -- On August 26, Crowdstrike replaced Maxim Integrated Products, who is being acquired by Analog Devices. `Reference `_ +- On August 26 2021, Crowdstrike replaced Maxim Integrated Products, who is being acquired by Analog Devices. `Reference `_ Nasdaq_100_Ticker_History 0.4.0 (2021-07-31) diff --git a/nasdaq_100_ticker_history/n100-ticker-changes-2021.yml b/nasdaq_100_ticker_history/n100-ticker-changes-2021.yml index b5fea56..177f72c 100644 --- a/nasdaq_100_ticker_history/n100-ticker-changes-2021.yml +++ b/nasdaq_100_ticker_history/n100-ticker-changes-2021.yml @@ -118,4 +118,11 @@ changes: { !!set {CRWD}, ], }, + '2021-12-20': { + python_set_operators: [ '-', '|' ], + rhs_operands: [ + !!set {CDW, CERN, CHKP, FOX, FOXA, INCY, TCOM}, + !!set {ABNB, DDOG, FTNT, LCID, PANW, ZS}, + ], + }, } diff --git a/nasdaq_100_ticker_history/n100-ticker-changes-2022.yml b/nasdaq_100_ticker_history/n100-ticker-changes-2022.yml new file mode 100644 index 0000000..b5fea56 --- /dev/null +++ b/nasdaq_100_ticker_history/n100-ticker-changes-2022.yml @@ -0,0 +1,121 @@ +--- +year: 2021 +tickers_on_Jan_1: !!set + ? AAPL + ? ADBE + ? ADI + ? ADP + ? ADSK + ? AEP + ? ALGN + ? ALXN + ? AMAT + ? AMD + ? AMGN + ? AMZN + ? ANSS + ? ASML + ? ATVI + ? AVGO + ? BIDU + ? BIIB + ? BKNG + ? CDNS + ? CDW + ? CERN + ? CHKP + ? CHTR + ? CMCSA + ? COST + ? CPRT + ? CSCO + ? CSX + ? CTAS + ? CTSH + ? DLTR + ? DOCU + ? DXCM + ? EA + ? EBAY + ? EXC + ? FAST + ? FB + ? FISV + ? FOX + ? FOXA + ? GILD + ? GOOG + ? GOOGL + ? IDXX + ? ILMN + ? INCY + ? INTC + ? INTU + ? ISRG + ? JD + ? KDP + ? KHC + ? KLAC + ? LRCX + ? LULU + ? MAR + ? MCHP + ? MDLZ + ? MELI + ? MNST + ? MRNA + ? MRVL + ? MSFT + ? MTCH + ? MU + ? MXIM + ? NFLX + ? NTES + ? NVDA + ? NXPI + ? OKTA + ? ORLY + ? PAYX + ? PCAR + ? PDD + ? PEP + ? PTON + ? PYPL + ? QCOM + ? REGN + ? ROST + ? SBUX + ? SGEN + ? SIRI + ? SNPS + ? SPLK + ? SWKS + ? TCOM + ? TEAM + ? TMUS + ? TSLA + ? TXN + ? VRSK + ? VRSN + ? VRTX + ? WBA + ? WDAY + ? XEL + ? XLNX + ? ZM +changes: { + '2021-07-21': { + python_set_operators: [ '-', '|' ], + rhs_operands: [ + !!set {ALXN}, + !!set {HON}, + ], + }, + '2021-08-26': { + python_set_operators: [ '-', '|' ], + rhs_operands: [ + !!set {MXIM}, + !!set {CRWD}, + ], + }, +} diff --git a/pyproject.toml b/pyproject.toml index 883118c..faa54de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "nasdaq-100-ticker-history" -version = "0.5.0" +version = "2022.0.0-alpha.0" description = "Return NASDAQ 100 ticker symbols by date." authors = ["Jeff McCarrell "] license = "MIT" diff --git a/tests/test_n100_tickers.py b/tests/test_n100_tickers.py index 67fc068..e785426 100644 --- a/tests/test_n100_tickers.py +++ b/tests/test_n100_tickers.py @@ -44,6 +44,22 @@ def _test_at_year_boundary(year: int, expected_number_of_tickers: int) -> None: assert previous_tickers == current_tickers +# def test_year_boundary_2021_2022() -> None: +# _test_at_year_boundary(2022, 102) + + +# def test_2021_annual_changes() -> None: +# num_tickers_2021_end_of_year = 102 +# # Annual 2021 changes +# # https://www.nasdaq.com/press-release/annual-changes-to-the-nasdaq-100-indexr-2021-12-10-0 +# # +# # On December 10, 2021 Nasdaq announced that six new companies would join the index prior to the market open on December 20, 2021. +# # They are Airbnb (ABNB), Datadog (DDOG), Fortinet (FTNT), Lucid Group (LCID), Palo Alto Networks (PANW), and Zscaler (ZS). +# # They will replace CDW (CDW), Cerner (CERN), Check Point (CHKP), Fox Corporation (FOXA/FOX), Incyte (INCY), and Trip.com (TCOM). +# # https://greenstocknews.com/news/nasdaq/lcid/annual-changes-to-the-nasdaq-100-index +# assert len(tickers_as_of(2021, 12, 17)) == num_tickers_2021_end_of_year + + def test_tickers_2021() -> None: num_tickers_2021 = 102