How to Calculate Mutual Fund Percent Change Using Python yfinance?

20 Replies, 1491 Views

Hey! I’ve done this before, and mutual funds are treated just like stocks in yfinance. You can use the `.history()` method to get the data and then calculate the percent change using `.pct_change()`.

One tip: make sure you’re pulling data for the correct period. If you’re looking for a specific time frame, adjust the `period` parameter in `.history()`.

Messages In This Thread



Users browsing this thread: 1 Guest(s)