app / de.uniks.codliners.stock_simulator.network / CoinGeckoApi

CoinGeckoApi

interface CoinGeckoApi

The CoinGecko API interface.

Author
Jan Müller

Functions

historicalPrices

Requests a CoinGeckoMarketChart for a CoinGecko cryptocurrency.

abstract suspend fun historicalPrices(id: String, currency: String = "usd", days: String = "max"): CoinGeckoMarketChart

quote

Requests a CoinGeckoQuote for a CoinGecko cryptocurrency.

abstract suspend fun quote(id: String): CoinGeckoQuote

symbols

Requests all CoinGeckoSymbols.

abstract suspend fun symbols(): List<CoinGeckoSymbol>