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

historicalPrices

@GET("coins/{id}/market_chart") abstract suspend fun historicalPrices(@Path("id") id: String, @Query("vs_currency") currency: String = "usd", @Query("days") days: String = "max"): CoinGeckoMarketChart

Requests a CoinGeckoMarketChart for a CoinGecko cryptocurrency.

Parameters

id - The CoinGecko id of the cryptocurrency.

currency - The target currency of the CoinGeckoMarketChart. Defaults to usd.

days - The maximum amount of days. Defaults to unlimited.

Return
The requested CoinGeckoMarketChart.