Get top 5 tickers by sector #2047
Answered
by
ericpien
f-bautista
asked this question in
Q&A
-
Hello, is there a way to get the top 5 tickers by market cap in a sector, by adding calling a function that accepts sector as a parameter. |
Beta Was this translation helpful? Give feedback.
Answered by
ericpien
Sep 22, 2024
Replies: 1 comment
-
Hi @f-bautista, you can query it in the dev branch now with import yfinance as yf
tech = yf.Sector('technology')
tech.top_companies Related PR: #2058 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
f-bautista
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @f-bautista, you can query it in the dev branch now with
Related PR: #2058