Skip to main content

gainers

Shows Largest Gainers - coins which gain the most in given period. [Source: CoinGecko]

Source Code: [link]

openbb.crypto.disc.gainers(interval: str = "1h", limit: int = 50, sortby: str = "market_cap_rank", ascend: bool = True)

Parameters

NameTypeDescriptionDefaultOptional
intervalstrTime interval by which data is displayed. One from [1h, 24h, 7d, 14d, 30d, 60d, 1y]1hTrue
limitintNumber of records to display50True
sortbystrKey to sort data. The table can be sorted by every of its columns. Refer to
API documentation (see /coins/markets in https://www.coingecko.com/en/api/documentation)
market_cap_rankTrue
ascendboolSort data in ascending orderTrueTrue

Returns

TypeDescription
pd.DataFrameTop Gainers - coins which gain most in price in given period of time.
Columns: Symbol, Name, Volume, Price, %Change_{interval}, Url