-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Description
Describe bug
It would be useful to be able to set which market is in scope.
For example, this code snippet,
sector = yf.Sector(sector_key)
top_companies_df = sector.top_companies
only works or assumes the yf.Market variable is US.
It would be better to be able to scope yf statements to any of the Yahoo Markets,
US
GB
ASIA
EUROPE
RATES
COMMODITIES
CURRENCIES
CRYPTOCURRENCIES
Simple code that reproduces your problem
For example, this code snippet,
sector = yf.Sector(sector_key)
top_companies_df = sector.top_companies
only works or assumes the yf.Market variable is US.
Debug log from yf.enable_debug_mode()
N/A
Bad data proof
No response
yfinance
version
0.2.65
Python version
3.12.11
Operating system
Windows 11
Metadata
Metadata
Assignees
Labels
No labels