Portfolio List#
- morningstar_data.direct.portfolio.get(
- portfolio_type: str | None = None,
Returns all portfolios for the given portfolio type.
- Parameters:
portfolio_type (
str
) – The portfolio type. The available options are: transaction_accounts, client_accounts, model_portfolios, custom_benchmarks.- Returns:
A DataFrame object with portfolio details. The DataFrame columns include:
PortfolioId
Name
Type
- Return type:
DataFrame
Examples
Get client account portfolios.
import morningstar_data as md df = md.direct.portfolio.get(portfolio_type = "client_accounts") df
- Output:
PortfolioId
Name
Type
3d25b613-ae42-4cb6-bd05-7ba7c74883f3;UA
Portfolio1
client_accounts
5d25b613-ae42-4cb6-bd05-7ba7c74883f3;BK
Portfolio2
client_accounts
…