Sep38PriceResponse
public struct Sep38PriceResponse : Decodable, Sendable
Response from the GET /price endpoint of SEP-38 Quote Service.
This response provides an indicative price for an asset exchange without creating a firm quote. The price is not guaranteed and is for informational purposes only. To get a guaranteed quote, use POST /quote instead.
-
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 amount of sell asset that would be exchanged.
Represented as a decimal string.
Declaration
Swift
public let sellAmount: String -
The amount of buy asset that would be received.
Represented as a decimal string.
Declaration
Swift
public let buyAmount: String -
Fee structure for this indicative price.
Contains the estimated 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