Performance Reports#

morningstar_data.direct.performance_report.calculate_report(
report_id: str,
) DataFrame#

Initiates recalculation of a specified performance report.

Parameters:

report_id (str) – The unique identifier of a saved performance report from the Performance Reporting module in Morningstar Direct. The id string is numeric. For example, “7782164”.

Returns:

A DataFrame object with calculated performance report data. The DataFrame columns include:

  • reportId

  • success

Return type:

DataFrame

Raises:

ValueErrorException – When report_id parameter is invalid, then an error will occur.

Examples

Calculate performance report with id “7128568”.

import morningstar_data as md

df = md.direct.performance_report.calculate_report(report_id="7128568")
df
Output:

reportId

success

7128568

True

morningstar_data.direct.performance_report.get_report(
report_id: str,
) DataFrame#

Returns the data for a specified performance report in DataFrame format.

Parameters:

report_id (str) – The unique identifier of a saved performance report from the Performance Reporting module in Morningstar Direct. The id string is numeric. For example, “7782164”.

Returns:

A DataFrame object with the special performance report data. The DataFrame columns include all columns that user set in the special performance report.

Return type:

DataFrame

Examples

Get performance report with id “2463866”.

import morningstar_data as md

df = md.direct.performance_report.get_report(report_id="2463866")
df
Output:

Group/Investment

Object Type

Display Group

Peer Group

Ticker

sample

investments

Unclassified

Peer Group: Display Group

XXX

morningstar_data.direct.performance_report.get_report_status(
report_id: str,
) DataFrame#

Returns the current status of calculation of a specified performance report. Possible statuses are:

  • Failed

  • Queued

  • Calculating

  • Generating Report

  • Merging Excel

  • Downloading

  • Ready

Parameters:

report_id (str) – The unique identifier of a saved performance report from the Performance Reporting module in Morningstar Direct. The id string is numeric. For example, “7782164”.

Returns:

A DataFrame object with the special performance report status data. The DataFrame columns include:

  • reportId

  • status

Return type:

DataFrame

Examples

Get the performance report status with id “2463866”.

import morningstar_data as md

df = md.direct.performance_report.get_report_status(report_id="2463866")
df
Output:

reportId

status

2463866

Ready

morningstar_data.direct.performance_report.get_reports() DataFrame#

Returns all performance reports saved or shared to a user in Morningstar Direct.

Returns:

A DataFrame object with all performance reports data. The DataFrame columns include:

  • reportId

  • name

  • permission

  • ownerId

  • shared

  • createdOn

  • lastCalculatedOn

  • folderId

Return type:

DataFrame

Examples:

import morningstar_data as md

df = md.direct.performance_report.get_reports()
df
Output:

reportId

name

permission

ownerId

shared

createdOn

lastCalculatedOn

folderId

4940775

sample

READ_WRITE

XXX

False

2017-08-17T09:39:00Z

1