yfinance-8.py
· 426 B · Python
Неформатований
import yfinance as yf
tech = yf.Sector('technology')
software = yf.Industry('software-infrastructure')
# Common information
tech.key
tech.name
tech.symbol
tech.ticker
tech.overview
tech.top_companies
tech.research_reports
# Sector information
tech.top_etfs
tech.top_mutual_funds
tech.industries
# Industry information
software.sector_key
software.sector_name
software.top_performing_companies
software.top_growth_companies
1 | import yfinance as yf |
2 | |
3 | tech = yf.Sector('technology') |
4 | software = yf.Industry('software-infrastructure') |
5 | |
6 | # Common information |
7 | tech.key |
8 | tech.name |
9 | tech.symbol |
10 | tech.ticker |
11 | tech.overview |
12 | tech.top_companies |
13 | tech.research_reports |
14 | |
15 | # Sector information |
16 | tech.top_etfs |
17 | tech.top_mutual_funds |
18 | tech.industries |
19 | |
20 | # Industry information |
21 | software.sector_key |
22 | software.sector_name |
23 | software.top_performing_companies |
24 | software.top_growth_companies |