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, by default None. If None, the priority list configured in the settings is used. Default priority: finviz.NoneTrue

Data​

NameTypeDescription
namestrName or label of the group.