Skip to main content

gainers

Get the top price gainers in the stock market.

Examples

from openbb import obb
obb.equity.discovery.gainers(provider='yfinance')
obb.equity.discovery.gainers(sort='desc', provider='yfinance')

Parameters

NameTypeDescriptionDefaultOptional
sortLiteral['asc', 'desc']Sort order. Possible values: 'asc', 'desc'. Default: 'desc'.descTrue

Returns

OBBject
results : List[EquityGainers]
Serializable results.

provider : Optional[Literal['tmx', 'yfinance']]
Provider name.

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

chart : Optional[Chart]
Chart object.

extra : Dict[str, Any]
Extra info.

Data

NameTypeDescription
symbolstrSymbol representing the entity requested in the data.
namestrName of the entity.
pricefloatLast price.
changefloatChange in price.
percent_changefloatPercent change.
volumeUnion[int, float]The trading volume.