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

IEXHistoricalPrice

@JsonClass(true) data class IEXHistoricalPrice

Price data point for an IEX share.

Constructors

<init>

Price data point for an IEX share.

IEXHistoricalPrice(date: String, close: Double, changeOverTime: Double, change: Double, changePercent: Double)

Properties

change

The price change of the data point.

val change: Double

changeOverTime

The change over time of the data point.

val changeOverTime: Double

changePercent

The change percentage of the data point.

val changePercent: Double

close

The close value of the data point.

val close: Double

date

The timestamp of the data point.

val date: String

Extension Functions

asDomainHistoricalPrice

Transforms an IEXHistoricalPrice to an equivalent HistoricalPrice.

fun IEXHistoricalPrice.asDomainHistoricalPrice(id: String): HistoricalPrice