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

asHistoricalPrices

fun CoinGeckoMarketChart.asHistoricalPrices(id: String): List<HistoricalPrice>

Transforms a CoinGeckoMarketChart to an equivalent List of HistoricalPrices.

Parameters

id - The id of the related CoinGecko cryptocurrency.

Receiver
The CoinGeckoMarketChart that will be transformed.

Return
The equivalent HistoricalPrice.

Author
Jan Müller