Mael-J / mstarpy

python package to get financial data from Morningstar
https://mstarpy.readthedocs.io/en/latest/
MIT License
27 stars 3 forks source link

German Exchange #8

Closed kostja1979 closed 8 months ago

kostja1979 commented 8 months ago

Hi, the EXCHANGE list of utils.py does not include the German Exchange (Frankfurt Stock Exchange).

Thanks a lot!

knickr commented 8 months ago

Doesn't have the Australian Stock Exchange either (XASX). Here is a list of the exchanges that provide real time data with their 'micCode' and 'name'. It doesn't include all exchanges e.g. Mexico. I assume that the micCode is the last four letters of the exchangeID.

XASE | American Stock Exchange XCNQ | CNSX (Canada National Stock Exchange) XOSE | Osaka XTKS | Tokyo Stock Exchange XHKF | Hong Kong Stock Exchange / Hong Kong Futures Exchange / Hang Seng Indices XSHG | Shanghai Stock Exchange XSHE | Shenzhen Stock Exchange OTCM | OTC Markets (was Pinksheets) XNSE | India National Stock Exchange XBOM | Mumbai Stock Exchange XKOS | Korea Stock Exchange (KOSCOM) XNYS | New York Stock Exchange XSES | Singapore Stock Exchange ARCX | NYSE Arca (Pacific Stock Exchange) XTAI | Taiwan Stock Exchange BATS | BATS Exchange inc XASX | Australia Stock Exchange XNAS | NASDAQ national market XNZE | New Zealand Stock Exchange XLON | LSE (SEAQ national) XOTC | OTCBB, over the counter bulletin board equities MSCO | MSCI (EOD Only) MicCodeTemp | Morningstar Indexes IXUS | NASDAQ Indices IXUS | Dow Jones Indices XPAR | NYSE Euronext Paris Equities IXUS | Standard + Poor’s Indices XICE | Stockholm (Equities) Also Iceland – differentiated by field S676 XHEL | Helsinki (Equities) XSWX | Swiss Funds MSTARFund | Morningstar Fund XSWX | SIX Feed (was SWX) MABX | Madrid stock exchange Equities XFRA | Frankfurter Börse (or Germany in general) XEUR | EUREX (was DTB Deutsche Termin Börse) XAMS | NYSE Euronext Amsterdam Equities XBRU | NYSE Euronext Brussels Equities XAMS | NYSE Euronext Indices XETR | XETRA Frankfurt XMUN | Munchen XSTU | Stuttgart XBER | Berlin XDUS | Düsseldorf XHAM | Hamburg XHAN | Hannover (via CEF) XMIL | Milan Stock Exchange (Borsa Italia) XTSE | MDI Indices XTSE | CBOE Indices CHIA | Chi-X Australia FINR | OTC Composite USCO | US composite market XTSE | Toronto Stock Exchange inc Ventures

Mael-J commented 8 months ago

Hello,

I made a new release V.2.0.0 where I added the stock echanges shared by @knickr.

All the exchanges changed in this new version, so your previous code might not works for the class mstarpy.Stock.

By default, the class looks for stocks in all exchanges ("E0WWE$$ALL").

@knickr how did you find the micCode and all the exchanges ?

Thank you.

knickr commented 8 months ago

I have been playing around with a 4 week trial premium Morningstar login and got it from this link (which needw a Bearer Token in the header to access) which shows the realtime exchange permissions. As I said it's not a list of all stock exchanges eg Mexico isnt there but it is a list of the major exchanges that provide either real time or delayed price data.

https://www.us-api.morningstar.com/QS-markets/service/queryPermission?fields=2048,8192,16384&trackMarketData=3.6.5

I also found this list also which has some other exchanges including Mexico

https://www.quantconnect.com/forum/discussion/12234/exchange-id-mapping/p1

On Tue, Feb 20, 2024 at 4:15 AM Mael_Jourdain @.***> wrote:

Hello,

I made a new release V.2.0.0 where I added the stock echanges shared by @knickr https://github.com/knickr.

All the exchanges changed in this new version, so your previous code might not works for the class mstarpy.Stock.

By default, the class looks for stocks in all exchanges ("E0WWE$$ALL").

@knickr https://github.com/knickr how did you find the micCode and all the exchanges ?

Thank you.

— Reply to this email directly, view it on GitHub https://github.com/Mael-J/mstarpy/issues/8#issuecomment-1952906935, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVI4ROT3X7YOZA5MTDJMRI3YUOCDHAVCNFSM6AAAAABDON2JB2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJSHEYDMOJTGU . You are receiving this because you were mentioned.Message ID: @.***>

Mael-J commented 8 months ago

Thank you for sharing all the exchange. It was a request by few people.