OrderbookOfferResponse

public struct OrderbookOfferResponse : Decodable, Sendable

Represents a orderbook offer(bids/asks). See Stellar developer docs

  • An object of a number numerator and number denominator that represent the buy and sell price of the currencies on offer.

    Declaration

    Swift

    public let priceR: OfferPriceResponse
  • How many units of buying it takes to get 1 unit of selling. A number representing the decimal form of priceR.

    Declaration

    Swift

    public let price: String
  • The amount of selling the account making this offer is willing to sell.

    Declaration

    Swift

    public let amount: String
  • 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