Price

@Serializable
data class Price(val numerator: Long, val denominator: Long)

Represents a price in the Stellar network.

Note: The numerator (n) and denominator (d) returned by Horizon can exceed int32 ranges.

Constructors

Link copied to clipboard
constructor(numerator: Long, denominator: Long)

Properties

Link copied to clipboard
@SerialName(value = "d")
val denominator: Long

The denominator of the price fraction

Link copied to clipboard
@SerialName(value = "n")
val numerator: Long

The numerator of the price fraction