Skip to main content

Compare Groups


Implementation details

Class names

Model nameParameters classData class
CompareGroupsCompareGroupsQueryParamsCompareGroupsData

Import Statement

from openbb_core.provider.standard_models.compare_groups import (
CompareGroupsData,
CompareGroupsQueryParams,
)

Parameters

NameTypeDescriptionDefaultOptional
groupstrThe group to compare - i.e., 'sector', 'industry', 'country'. Choices vary by provider.NoneTrue
metricstrThe type of metrics to compare - i.e, 'valuation', 'performance'. Choices vary by provider.NoneTrue

Data

NameTypeDescription
namestrName or label of the group.