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

CoinGeckoQuote

@JsonClass(true) data class CoinGeckoQuote

Quote information of a CoinGecko cryptocurrency.

Constructors

<init>

Quote information of a CoinGecko cryptocurrency.

CoinGeckoQuote(id: String, symbol: String, name: String, marketData: CoinGeckoMarketData)

Properties

id

The CoinGecko ID of the cryptocurrency.

val id: String

marketData

The market data of the cryptocurrency.

val marketData: CoinGeckoMarketData

name

The name of the cryptocurrency.

val name: String

symbol

The symbol of the cryptocurrency.

val symbol: String

Extension Functions

asDomainQuote

Transforms a CoinGeckoQuote to an equivalent Quote.

fun CoinGeckoQuote.asDomainQuote(): Quote