Sep38QuoteResponse
public struct Sep38QuoteResponse : Decodable, Sendable
Response from the POST /quote and GET /quote/:id endpoints of SEP-38 Quote Service.
This response represents a firm quote that can be executed by the client. The quote is guaranteed until the expiration time and includes all exchange details such as amounts, prices, and fees.
See SEP-38: POST /quote and GET /quote/:id
-
Unique identifier for this quote.
Used to reference this quote in subsequent API calls.
Declaration
Swift
public let id: String -
The timestamp when this quote expires.
After this time, the quote is no longer valid and cannot be used.
Declaration
Swift
public let expiresAt: Date -
The total price including fees.
Represented as a decimal string showing the total exchange rate.
Declaration
Swift
public let totalPrice: String -
The base exchange price without fees.
Represented as a decimal string showing units of buy asset per unit of sell asset.
Declaration
Swift
public let price: String -
The asset being sold.
In SEP-38 Asset Identification Format.
Declaration
Swift
public let sellAsset: String -
The amount of sell asset to be exchanged.
Represented as a decimal string.
Declaration
Swift
public let sellAmount: String -
The asset being purchased.
In SEP-38 Asset Identification Format.
Declaration
Swift
public let buyAsset: String -
The amount of buy asset to be received.
Represented as a decimal string.
Declaration
Swift
public let buyAmount: String -
Fee structure for this quote.
Contains the total fee amount, fee asset, and optional breakdown of fee components.
Declaration
Swift
public let fee: Sep38Fee -
Initializer - creates a new instance by decoding from the given decoder.
Declaration
Swift
public init(from decoder: Decoder) throwsParameters
decoderThe decoder containing the data
View on GitHub
Install in Dash