-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
insiders & holders = 404 error #1904
Comments
Holders webpage doesn't appear to use API directly. |
Hey just adding to this thread. The following are broken:
|
I figured out a fix - ticker symbol needs to be appended to base URL, not added as a parameter:
I'll leave as a nice task for #1084 |
Is it possible to use this method ".institutional_holders" in any version? It would be essential for what I am working on currently. |
Describe bug
404 Client Error: Not Found for url: https://query2.finance.yahoo.com/v10/finance/quoteSummary/?modules=institutionOwnership%2CfundOwnership%2CmajorDirectHolders%2CmajorHoldersBreakdown%2CinsiderTransactions%2CinsiderHolders%2CnetSharePurchaseActivity&corsDomain=finance.yahoo.com&symbol=AAPL&formatted=false&crumb=IeRNDRnDmnU
Unable to access insider purchases due to empty dataframe:
Insider Trades:
Empty DataFrame
Columns: []
Index: []
Simple code that reproduces your problem
import yfinance as yf
def get_insider_trades(symbol):
try:
# Create a Ticker object
ticker = yf.Ticker(symbol)
def main():
symbol = "AAPL" # Example symbol
insider_trades = get_insider_trades(symbol)
if name == "main":
main()
Debug log
N/A
Bad data proof
No response
yfinance
versionLatest
Python version
No response
Operating system
No response
The text was updated successfully, but these errors were encountered: