TradeEffectResponse
public class TradeEffectResponse : EffectResponse, @unchecked Sendable
Represents a trade effect. This effect occurs when a trade is executed on the Stellar decentralized exchange (DEX). Triggered when offers are matched through Manage Sell Offer, Manage Buy Offer, or Path Payment operations. See Stellar developer docs
-
The account ID of the seller in the trade.
Declaration
Swift
public let seller: String -
The multiplexed account address if the seller is a muxed account.
Declaration
Swift
public let sellerMuxed: String? -
The multiplexed account ID if the seller is a muxed account.
Declaration
Swift
public let sellerMuxedId: String? -
The ID of the offer that was matched.
Declaration
Swift
public let offerId: String -
The amount of the asset sold.
Declaration
Swift
public let soldAmount: String -
The type of the sold asset (e.g., native, credit_alphanum4, credit_alphanum12).
Declaration
Swift
public let soldAssetType: String -
The code of the sold asset. Nil for native assets.
Declaration
Swift
public let soldAssetCode: String? -
The issuer account ID of the sold asset. Nil for native assets.
Declaration
Swift
public let soldAssetIssuer: String? -
The amount of the asset bought.
Declaration
Swift
public let boughtAmount: String -
The type of the bought asset (e.g., native, credit_alphanum4, credit_alphanum12).
Declaration
Swift
public let boughtAssetType: String -
The code of the bought asset. Nil for native assets.
Declaration
Swift
public let boughtAssetCode: String? -
The issuer account ID of the bought asset. Nil for native assets.
Declaration
Swift
public let boughtAssetIssuer: String? -
Initializer - creates a new instance by decoding from the given decoder.
Declaration
Swift
public required init(from decoder: Decoder) throwsParameters
decoderThe decoder containing the data
View on GitHub
Install in Dash