LiquidityPoolPriceResponse

public struct LiquidityPoolPriceResponse : Decodable, Sendable

Represents a price ratio in a liquidity pool. The price is represented as a fraction with a numerator and denominator. See Stellar developer docs

  • n

    The numerator of the price fraction.

    Declaration

    Swift

    public let n: Int
  • d

    The denominator of the price fraction.

    Declaration

    Swift

    public let d: Int
  • 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