Skip to content

Commit

Permalink
initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccarrell committed Dec 23, 2021
1 parent 50ade4c commit e2cf365
Show file tree
Hide file tree
Showing 5 changed files with 156 additions and 2 deletions.
12 changes: 11 additions & 1 deletion docs/changelog.rst
Expand Up @@ -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 <https://en.wikipedia.org/wiki/Nasdaq-100#Changes_in_2021>`
- Change the versioning scheme: the major version is the calendar year

Nasdaq_100_Ticker_History 0.5.0 (2021-10-02)
============================================

Expand All @@ -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 <https://en.wikipedia.org/wiki/Nasdaq-100#cite_ref-62>`_
- On August 26 2021, Crowdstrike replaced Maxim Integrated Products, who is being acquired by Analog Devices. `Reference <https://en.wikipedia.org/wiki/Nasdaq-100#cite_ref-62>`_


Nasdaq_100_Ticker_History 0.4.0 (2021-07-31)
Expand Down
7 changes: 7 additions & 0 deletions nasdaq_100_ticker_history/n100-ticker-changes-2021.yml
Expand Up @@ -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},
],
},
}
121 changes: 121 additions & 0 deletions 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},
],
},
}
2 changes: 1 addition & 1 deletion 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 <jeff@mccarrell.org>"]
license = "MIT"
Expand Down
16 changes: 16 additions & 0 deletions tests/test_n100_tickers.py
Expand Up @@ -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

Expand Down

0 comments on commit e2cf365

Please sign in to comment.