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
providerLiteral['finviz']The provider to use for the query, by default None. If None, the provider specified in defaults is selected or 'finviz' if there is no default.finvizTrue

Data​

NameTypeDescription
namestrName or label of the group.