Skip to content

Commit

Permalink
remove duplicate key in Exchange
Browse files Browse the repository at this point in the history
  • Loading branch information
Mael-J committed Feb 19, 2024
1 parent 4f36731 commit e3f057c
Showing 1 changed file with 65 additions and 66 deletions.
131 changes: 65 additions & 66 deletions mstarpy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,70 +5,69 @@
ASSET_TYPE = ["etf", "fund", "stock"]

EXCHANGE = {
'ARCX' : 'NYSE Arca (Pacific Stock Exchange)',
'BATS' : 'BATS Exchange inc',
'CHIA' : 'Chi-X Australia',
'E0WWE$$ALL' : 'WORLDWIDE_EQUITY',
'FINR' : 'OTC Composite',
'IPSX' : 'equity_exchange_IPSX',
'IXUS' : 'Standard + Poor’s Indices',
'MABX' : 'Madrid stock exchange Equities',
'MSCO' : 'MSCI (EOD Only)',
'MSTARFund' : 'Morningstar Fund',
'OTCM' : 'OTC Markets (was Pinksheets)',
'USCO' : 'US composite market',
'XAMS' : 'NYSE Euronext Amsterdam Equities',
'XASE' : 'American Stock Exchange',
'XASX' : 'Australia Stock Exchange',
'XATH' : 'Athens Stock Exchange',
'XBER' : 'Berlin',
'XBKK' : 'Thailand Stock Exchange',
'XBOM' : 'Mumbai Stock Exchange',
'XBRU' : 'NYSE Euronext Brussels Equities',
'XCNQ' : 'CNSX (Canada National Stock Exchange)',
'XCSE' : 'OMX exchange Copenhagen',
'XDUB' : 'Irish Stock Exchange',
'XDUS' : 'Düsseldorf',
'XETR' : 'XETRA Frankfurt',
'XEUR' : 'EUREX (was DTB Deutsche Termin Börse)',
'XFRA' : 'Frankfurter Börse (or Germany in general)',
'XHAM' : 'Hamburg',
'XHAN' : 'Hannover (via CEF)',
'XHEL' : 'Helsinki (Equities)',
'XHKF' : 'Hong Kong Stock Exchange / Hong Kong Futures Exchange / Hang Seng Indices',
'XHKG' : 'HONG_KONG',
'XICE' : 'OMX Exchange Iceland',
'XIST' : 'Istanbul Stock Exchange',
'XKOS' : 'Korea Stock Exchange (KOSCOM)',
'XLIS' : 'NYSE Euronext Lisbon',
'XLIT' : 'OMX Exchange Vilnius',
'XLON' : 'LSE (SEAQ national)',
'XLUX' : 'Luxembourg Stock Exchange',
'XMEX' : 'Bolsa de valores Mexico',
'XMIL' : 'Milan Stock Exchange (Borsa Italia)',
'XMUN' : 'Munchen',
'XNAS' : 'NASDAQ national market',
'XNSE' : 'India National Stock Exchange',
'XNYS' : 'New York Stock Exchange',
'XNZE' : 'New Zealand Stock Exchange',
'XOSE' : 'Osaka',
'XOSL' : 'Oslo bors',
'XOTC' : 'OTCBB, over the counter bulletin board equities',
'XPAR' : 'NYSE Euronext Paris Equities',
'XRIS' : 'OMX Exchange Riga',
'XSES' : 'singapore',
'XSES' : 'Singapore Stock Exchange',
'XSHE' : 'Shenzhen Stock Exchange',
'XSHG' : 'Shanghai Stock Exchange',
'XSTO' : 'NASDAQ OMX Stockholm',
'XSTU' : 'Stuttgart',
'XSWX' : 'SIX Feed (was SWX)',
'XTAI' : 'Taiwan Stock Exchange',
'XTAL' : 'Tallin Stock Exchange',
'XTKS' : 'Tokyo Stock Exchange',
'XTSE' : 'Toronto Stock Exchange',
'XWAR' : 'Warsaw Stock Exchange',
'XWBO' : 'Wiener Boerse',
'ARCX': 'NYSE Arca (Pacific Stock Exchange)',
'BATS': 'BATS Exchange inc',
'CHIA': 'Chi-X Australia',
'E0WWE$$ALL': 'WORLDWIDE_EQUITY',
'FINR': 'OTC Composite',
'IPSX': 'equity_exchange_IPSX',
'IXUS': "Standard + Poor's Indices",
'MABX': 'Madrid stock exchange Equities',
'MSCO': 'MSCI (EOD Only)',
'MSTARFund': 'Morningstar Fund',
'OTCM': 'OTC Markets (was Pinksheets)',
'USCO': 'US composite market',
'XAMS': 'NYSE Euronext Amsterdam Equities',
'XASE': 'American Stock Exchange',
'XASX': 'Australia Stock Exchange',
'XATH': 'Athens Stock Exchange',
'XBER': 'Berlin',
'XBKK': 'Thailand Stock Exchange',
'XBOM': 'Mumbai Stock Exchange',
'XBRU': 'NYSE Euronext Brussels Equities',
'XCNQ': 'CNSX (Canada National Stock Exchange)',
'XCSE': 'OMX exchange Copenhagen',
'XDUB': 'Irish Stock Exchange',
'XDUS': 'Düsseldorf',
'XETR': 'XETRA Frankfurt',
'XEUR': 'EUREX (was DTB Deutsche Termin Börse)',
'XFRA': 'Frankfurter Börse (or Germany in general)',
'XHAM': 'Hamburg',
'XHAN': 'Hannover (via CEF)',
'XHEL': 'Helsinki (Equities)',
'XHKF': 'Hong Kong Stock Exchange / Hong Kong Futures Exchange / Hang Seng Indices',
'XHKG': 'HONG_KONG',
'XICE': 'OMX Exchange Iceland',
'XIST': 'Istanbul Stock Exchange',
'XKOS': 'Korea Stock Exchange (KOSCOM)',
'XLIS': 'NYSE Euronext Lisbon',
'XLIT': 'OMX Exchange Vilnius',
'XLON': 'LSE (SEAQ national)',
'XLUX': 'Luxembourg Stock Exchange',
'XMEX': 'Bolsa de valores Mexico',
'XMIL': 'Milan Stock Exchange (Borsa Italia)',
'XMUN': 'Munchen',
'XNAS': 'NASDAQ national market',
'XNSE': 'India National Stock Exchange',
'XNYS': 'New York Stock Exchange',
'XNZE': 'New Zealand Stock Exchange',
'XOSE': 'Osaka',
'XOSL': 'Oslo bors',
'XOTC': 'OTCBB, over the counter bulletin board equities',
'XPAR': 'NYSE Euronext Paris Equities',
'XRIS': 'OMX Exchange Riga',
'XSES': 'Singapore Stock Exchange',
'XSHE': 'Shenzhen Stock Exchange',
'XSHG': 'Shanghai Stock Exchange',
'XSTO': 'NASDAQ OMX Stockholm',
'XSTU': 'Stuttgart',
'XSWX': 'SIX Feed (was SWX)',
'XTAI': 'Taiwan Stock Exchange',
'XTAL': 'Tallin Stock Exchange',
'XTKS': 'Tokyo Stock Exchange',
'XTSE': 'Toronto Stock Exchange',
'XWAR': 'Warsaw Stock Exchange',
'XWBO': 'Wiener Boerse',


}
Expand Down Expand Up @@ -583,8 +582,8 @@ def random_user_agent():
Returns:
:obj:`str` - user_agent:
The returned :obj:`str` is the name of a random User-Agent, which will be passed on the
:obj:`str` - user_agent:
The returned:obj:`str` is the name of a random User-Agent, which will be passed on the
headers of a request so to avoid restrictions due to the use of multiple requests from the
same User-Agent.
Expand Down

0 comments on commit e3f057c

Please sign in to comment.