Adds Australian Sector Indexes and some others. (#2441)

* Updates Fundamental Analysis Demo Routine - Routine now requires, `-i ticker`.

Updates Fundamental Analysis Demo Routine to allow for refactoring of menu. 

One adjustment has been made to require a ticker argument, `-i ticker`.

* Adds Australian Sector Indexes and some others.

Adds the following indexes to the INDICES dictionary:

^IVBX		IVBX2 Indice Valour (BRL)
M.BA		S&P MERVAL TR Index (USD)
BSE-500.BO		S&P BSE 500 Index (IRP)
BSE-200.BO		S&P BSE 200 Index (IRP)
BSE-100.BO		S&P BSE 100 Index (IRP)
^HSNU		Hang Seng Utilities Index (HKD)
^HSCC		Hang Seng China-Affiliated Corporations Index (HKD)
^HSNF		Hang Seng Finance Index (HKD)
^HSNP		Hang Seng Properties Index (HKD)
^JKLQ45		Indonesia Stock Exchange LQ45 Index (IDR)

^ATLI		S&P/ASX 20 Index (AUD)
^AFLI		S&P/ASX 50 Index (AUD)
^AXMD		S&P/ASX Mid Cap 50 Index (AUD)
^ATOI		S&P/ASX 100 Index (AUD)
^AXJO		S&P/ASX 200 Index (AUD)
^AXKO		S&P/ASX 300 Index (AUD)
^AXSO		S&P/ASX Small Ordinaries Index (AUD)
^AXEJ		S&P/ASX 200 Energy Index (AUD)
^AXMJ		S&P/ASX 200 Materials Index (AUD)
^AXJR		S&P/ASX 200 Resources Index (AUD)
^AXMM		S&P/ASX 300 Metal & Mining Index (AUD)
^AXNJ		S&P/ASX 200 Industrials Index (AUD)
^AXDJ		S&P/ASX 200 Consumer Discretionary Index (AUD)
^AXSJ		S&P/ASX 200 Consumer Staples Index (AUD)
^AXHJ		S&P/ASX 200 Health Care Index (AUD)
^AXFJ		S&P/ASX 200 Financials Index (AUD)
^AXPJ		S&P/ASX 200 A-REIT Index (AUD)
^AXIJ		S&P/ASX 200 Info Tech Index (AUD)
^AXTJ		S&P/ASX 200 Communications Index (AUD)
^AXUJ		S&P/ASX 200 Utilities Index (AUD)
^NZSC		S&P/NZX Small Cap Index (NZD)
TXBA.TS		S&P/TSX Composite Index - Banks (CAD)
^ATXPRIME Vienna ATX Prime (EUR)
^ATX5 Vienna ATX Five (EUR)

* added missing currency denominations for HKD and CAD

* black

* duplicate
This commit is contained in:
Danglewood
2022-08-27 18:00:26 -07:00
committed by GitHub
parent 6e7971860a
commit fdbcd01c80

View File

@@ -41,9 +41,12 @@ INDICES = {
"dow_dja": {"name": "Dow Jones Composite Average Index", "ticker": "^DJA"},
"dow_dji": {"name": "Dow Jones Industrial Average Index", "ticker": "^DJI"},
"ca_tsx": {"name": "TSX Composite Index (CAD)", "ticker": "^GSPTSE"},
"ca_banks": {"name": "S&P/TSX Composite Banks Index (CAD)", "ticker": "TXBA.TS"},
"mx_ipc": {"name": "IPC Mexico Index (MXN)", "ticker": "^MXX"},
"arca_mxy": {"name": "NYSE ARCA Mexico Index (USD)", "ticker": "^MXY"},
"br_bvsp": {"name": "IBOVESPA Sao Paulo Brazil Index (BRL)", "ticker": "^BVSP"},
"br_ivbx": {"name": "IVBX2 Indice Valour (BRL)", "ticker": "^IVBX"},
"ar_mervel": {"name": "S&P MERVAL TR Index (USD)", "ticker": "M.BA"},
"eu_fteu1": {"name": "FTSE Eurotop 100 Index (EUR)", "ticker": "^FTEU1"},
"eu_speup": {"name": "S&P Europe 350 Index (EUR)", "ticker": "^SPEUP"},
"eu_n100": {"name": "Euronext 100 Index (EUR)", "ticker": "^N100"},
@@ -58,6 +61,8 @@ INDICES = {
"nl_aex": {"name": "Euronext Dutch 25 Index (EUR)", "ticker": "^AEX"},
"nl_amx": {"name": "Euronext Dutch Mid Cap Index (EUR)", "ticker": "^AMX"},
"at_atx": {"name": "Wiener Börse Austrian 20 Index (EUR)", "ticker": "^ATX"},
"at_atx5": {"name": "Vienna ATX Five Index (EUR)", "ticker": "^ATX5"},
"at_prime": {"name": "Vienna ATX Prime Index (EUR)", "ticker": "^ATXPRIME"},
"ch_stoxx": {"name": "Zurich STXE 600 PR Index (EUR)", "ticker": "^STOXX"},
"ch_stoxx50e": {"name": "Zurich ESTX 50 PR Index (EUR)", "ticker": "^STOXX50E"},
"se_omx30": {"name": "OMX Stockholm 30 Index (SEK)", "ticker": "^OMX"},
@@ -80,6 +85,18 @@ INDICES = {
},
"es_ibex35": {"name": "IBEX 35 - Madrid CATS (EUR)", "ticker": "^IBEX"},
"in_bse": {"name": "S&P Bombay SENSEX (INR)", "ticker": "^BSESN"},
"in_bse500": {
"name": "S&P BSE 500 Index (INR)",
"ticker": "BSE-500.BO",
},
"in_bse200": {
"name": "S&P BSE 200 Index (INR)",
"ticker": "BSE-200.BO",
},
"in_bse100": {
"name": "S&P BSE 100 Index (INR)",
"ticker": "BSE-100.BO",
},
"in_bse_mcap": {
"name": "S&P Bombay Mid Cap Index (INR)",
"ticker": "BSE-MIDCAP.BO",
@@ -110,9 +127,77 @@ INDICES = {
"ticker": "^J232.JO",
},
"ru_moex": {"name": "MOEX Russia Index (RUB)", "ticker": "IMOEX.ME"},
"au_asx200": {"name": "S&P/ASX 200 Index (AUD)", "ticker": "^AXJO"},
"au_aord": {"name": "Australia All Ordinary Share Index (AUD)", "ticker": "^AORD"},
"au_small": {"name": "S&P/ASX Small Ordinaries Index (AUD)", "ticker": "^AXSO"},
"au_asx20": {
"name": "S&P/ASX 20 Index (AUD)",
"ticker": "^ATLI",
},
"au_asx50": {
"name": "S&P/ASX 50 Index (AUD)",
"ticker": "^AFLI",
},
"au_asx50_mid": {
"name": "S&P/ASX Mid Cap 50 Index (AUD)",
"ticker": "^AXMD",
},
"au_asx100": {
"name": "S&P/ASX 100 Index (AUD)",
"ticker": "^ATOI",
},
"au_asx200": {"name": "S&P/ASX 200 Index (AUD)", "ticker": "^AXJO"},
"au_asx300": {
"name": "S&P/ASX 300 Index (AUD)",
"ticker": "^AXKO",
},
"au_energy": {
"name": "S&P/ASX 200 Energy Sector Index (AUD)",
"ticker": "^AXEJ",
},
"au_resources": {
"name": "S&P/ASX 200 Resources Sector Index (AUD)",
"ticker": "^AXJR",
},
"au_materials": {
"name": "S&P/ASX 200 Materials Sector Index (AUD)",
"ticker": "^AXMJ",
},
"au_mining": {
"name": "S&P/ASX 300 Metals and Mining Sector Index (AUD)",
"ticker": "^AXMM",
},
"au_industrials": {
"name": "S&P/ASX 200 Industrials Sector Index (AUD)",
"ticker": "^AXNJ",
},
"au_discretionary": {
"name": "S&P/ASX 200 Consumer Discretionary Sector Index (AUD)",
"ticker": "^AXDJ",
},
"au_staples": {
"name": "S&P/ASX 200 Consumer Staples Sector Index (AUD)",
"ticker": "^AXSJ",
},
"au_health": {
"name": "S&P/ASX 200 Health Care Sector Index (AUD)",
"ticker": "^AXHJ",
},
"au_financials": {
"name": "S&P/ASX 200 Financials Sector Index (AUD)",
"ticker": "^AXFJ",
},
"au_reit": {"name": "S&P/ASX 200 A-REIT Industry Index (AUD)", "ticker": "^AXPJ"},
"au_tech": {"name": "S&P/ASX 200 Info Tech Sector Index (AUD)", "ticker": "^AXIJ"},
"au_communications": {
"name": "S&P/ASX 200 Communications Sector Index (AUD)",
"ticker": "^AXTJ",
},
"au_utilities": {
"name": "S&P/ASX 200 Utilities Sector Index (AUD)",
"ticker": "^AXUJ",
},
"nz50": {"name": "S&P New Zealand 50 Index (NZD)", "ticker": "^nz50"},
"nz_small": {"name": "S&P/NZX Small Cap Index (NZD)", "ticker": "^NZSC"},
"kr_kospi": {"name": "KOSPI Composite Index (KRW)", "ticker": "^KS11"},
"jp_arca": {"name": "NYSE ARCA Japan Index (JPY)", "ticker": "^JPN"},
"jp_n225": {"name": "Nikkei 255 Index (JPY)", "ticker": "^N225"},
@@ -147,8 +232,25 @@ INDICES = {
"tw_twii": {"name": "TSEC Weighted Index (TWD)", "ticker": "^TWII"},
"tw_tpai": {"name": "TSEC Paper and Pulp Subindex (TWD)", "ticker": "^TPAI"},
"hk_hsi": {"name": "Hang Seng Index (HKD)", "ticker": "^HSI"},
"hk_utilities": {
"name": "Hang Seng Utilities Sector Index (HKD)",
"ticker": "^HSNU",
},
"hk_china": {
"name": "Hang Seng China-Affiliated Corporations Index (HKD)",
"ticker": "^HSCC",
},
"hk_finance": {"name": "Hang Seng Finance Sector Index (HKD)", "ticker": "^HSNF"},
"hk_properties": {
"name": "Hang Seng Properties Sector Index (HKD)",
"ticker": "^HSNP",
},
"hk_hko": {"name": "NYSE ARCA Hong Kong Options Index (USD)", "ticker": "^HKO"},
"id_jkse": {"name": "Jakarta Composite Index (IDR)", "ticker": "^JKSE"},
"id_lq45": {
"name": "Indonesia Stock Exchange LQ45 Index (IDR)",
"ticker": "^JKLQ45",
},
"my_klci": {"name": "FTSE Kuala Lumpur Composite Index (MYR)", "ticker": "^KLSE"},
"ph_psei": {"name": "Philippine Stock Exchange Index (PHP)", "ticker": "PSEI.PS"},
"sg_sti": {"name": "STI Singapore Index (SGD)", "ticker": "^STI"},