OfferPriceResponse

public struct OfferPriceResponse : Decodable, Sendable

Represents an offer price_r attribute as a fraction. The price represents how many units of the buying asset are needed to purchase one unit of the selling asset. See Stellar developer docs

  • The numerator of the price fraction.

    Declaration

    Swift

    public let numerator: Int32
  • The denominator of the price fraction.

    Declaration

    Swift

    public let denominator: Int32
  • Initializer - creates a new instance by decoding from the given decoder.

    Declaration

    Swift

    public init(from decoder: Decoder) throws

    Parameters

    decoder

    The decoder containing the data