Skip to main content

Module crypto

Module crypto 

Source
Expand description

CoinGecko cryptocurrency data (requires crypto feature).

Keyless shortcuts, the crypto counterpart to finance. Market::crypto_trending and crypto_global reach the same data through provider routing when other CRYPTO providers are configured.

Structs§

CoinQuote
A cryptocurrency quote from CoinGecko.
GlobalCryptoStats
Aggregate global cryptocurrency market statistics, from CoinGecko’s /global.
SymbolMatch
A symbol matched by a search or listing query.
TrendingCoin
A coin trending in the last 24h, from CoinGecko’s /search/trending.

Functions§

coin
Fetch a single coin by its CoinGecko ID (e.g., "bitcoin", "ethereum").
coins
Fetch the top count cryptocurrencies by market cap.
global
Fetch aggregate global cryptocurrency market statistics.
search
Search CoinGecko’s coin catalog by free-text query, as canonical SymbolMatches. limit truncates the result — CoinGecko’s /search takes no page size and returns every match in one response.
trending
Fetch coins trending in the last 24h as canonical TrendingCoins.