yfinance-cache icon indicating copy to clipboard operation
yfinance-cache copied to clipboard

`^STOXX50E` fails due to missing mapping for `ZRH` exchange

Open nucflash opened this issue 8 months ago • 3 comments

Hi, I'm on the latest version, and the previous fix on #96 has worked, but for this ticker (arguably, not a ticker per sevbut an index) I get this:

Exception: Need to add mapping of exchange ZRH to xcal (ticker=^STOXX50E)

Is there anything that we can do to fix this one too?

Thanks!

nucflash avatar May 13 '25 15:05 nucflash

If you really want to fix yourself:

  1. find exchange here https://help.yahoo.com/kb/SLN2310.html
  2. find equivalent here (xcal) https://github.com/gerrymanoim/exchange_calendars
  3. add mapping to yfc_dat.py

ValueRaider avatar May 13 '25 17:05 ValueRaider

Thank you!

nucflash avatar May 13 '25 17:05 nucflash

Can you submit fix in a pull request? Otherwise leave open until fixed here.

ValueRaider avatar May 26 '25 10:05 ValueRaider