Skip to main content

groups

Compare Equity Sector and Industry Groups.

Example​

from openbb import obb
obb.equity.compare.groups()

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."finviz"True

Returns​

OBBject
results : List[CompareGroups]
Serializable results.

provider : Optional[Literal['finviz']]
Provider name.

warnings : Optional[List[Warning_]]
List of warnings.

chart : Optional[Chart]
Chart object.

extra: Dict[str, Any]
Extra info.

Data​

NameTypeDescription
providerLiteral['openbb']The data provider for the data.
namestrName or label of the group.