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

IEXQuote

@JsonClass(true) data class IEXQuote

Quote information of an IEX share.

Constructors

<init>

Quote information of an IEX share.

IEXQuote(symbol: String, companyName: String, latestPrice: Double, change: Double?)

Properties

change

The current price change of the share.

val change: Double?

companyName

The name of the company behind the share.

val companyName: String

latestPrice

The latest price of the share.

val latestPrice: Double

symbol

The symbol of the share.

val symbol: String

Extension Functions

asDomainQuote

Transforms an IEXQuote to an equivalent Quote.

fun IEXQuote.asDomainQuote(): Quote