yfinance
yfinance copied to clipboard
Add function to map MIC to yahoo suffix
In most cases, Yahoo Finance builds its symbol from the ticker symbol + a yahoo market suffix
It would be quite useful if the yfinance
had a built in way to map MIC code to Yahoo suffixes.
For example,
suffix = yf.market_suffix(mic='XPAR')
This would allow to 'easily' build many of the yahoo symbols from systems that use MIC as market identifiers.
e.g. 'XPAR' => '.PA', 'XNYM' => '.NYM', 'XCBT' => '.CBT', and so on...
@ranaroussi, if that makes sense I can contribute a PR.
As only you have requested this, best if you implement outside yfinance
to minimise code bloat.