Skip to content

Get top 5 tickers by sector #2047

Answered by ericpien
f-bautista asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
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
Category
Q&A
Labels
None yet
2 participants