TradeEffectResponse

@Serializable
@SerialName(value = "trade")
data class TradeEffectResponse(val id: String, val account: String?, val accountMuxed: String? = null, val accountMuxedId: String? = null, val type: String, val createdAt: String, val pagingToken: String, val links: EffectResponse.EffectLinks, val seller: String, val sellerMuxed: String? = null, val sellerMuxedId: String? = null, val offerId: Long, val soldAmount: String, val soldAssetType: String, val soldAssetCode: String? = null, val soldAssetIssuer: String? = null, val boughtAmount: String, val boughtAssetType: String, val boughtAssetCode: String? = null, val boughtAssetIssuer: String? = null) : EffectResponse

Represents trade effect response.

This effect occurs when a trade is executed.

See also

Constructors

Link copied to clipboard
constructor(id: String, account: String?, accountMuxed: String? = null, accountMuxedId: String? = null, type: String, createdAt: String, pagingToken: String, links: EffectResponse.EffectLinks, seller: String, sellerMuxed: String? = null, sellerMuxedId: String? = null, offerId: Long, soldAmount: String, soldAssetType: String, soldAssetCode: String? = null, soldAssetIssuer: String? = null, boughtAmount: String, boughtAssetType: String, boughtAssetCode: String? = null, boughtAssetIssuer: String? = null)

Properties

Link copied to clipboard
open override val account: String?

The account address that is associated with this effect

Link copied to clipboard
@SerialName(value = "account_muxed")
open override val accountMuxed: String?

The muxed account address that is associated with this effect

Link copied to clipboard
@SerialName(value = "account_muxed_id")
open override val accountMuxedId: String?

The muxed account ID that is associated with this effect

Link copied to clipboard
@SerialName(value = "bought_amount")
val boughtAmount: String

The amount of the asset that was bought

Link copied to clipboard
@SerialName(value = "bought_asset_code")
val boughtAssetCode: String?

The asset code that was bought (for non-native assets)

Link copied to clipboard
@SerialName(value = "bought_asset_issuer")
val boughtAssetIssuer: String?

The asset issuer that was bought (for non-native assets)

Link copied to clipboard
@SerialName(value = "bought_asset_type")
val boughtAssetType: String

The asset type that was bought

Link copied to clipboard
@SerialName(value = "created_at")
open override val createdAt: String

ISO 8601 timestamp of when this effect occurred

Link copied to clipboard
open override val id: String

A unique identifier for this effect

Link copied to clipboard
@SerialName(value = "_links")
open override val links: EffectResponse.EffectLinks

Links related to this effect

Link copied to clipboard
@SerialName(value = "offer_id")
val offerId: Long

The ID of the offer that was executed

Link copied to clipboard
@SerialName(value = "paging_token")
open override val pagingToken: String

A cursor value for use in pagination

Link copied to clipboard

The account address of the seller

Link copied to clipboard
@SerialName(value = "seller_muxed")
val sellerMuxed: String?

The muxed account address of the seller

Link copied to clipboard
@SerialName(value = "seller_muxed_id")
val sellerMuxedId: String?

The muxed account ID of the seller

Link copied to clipboard
@SerialName(value = "sold_amount")
val soldAmount: String

The amount of the asset that was sold

Link copied to clipboard
@SerialName(value = "sold_asset_code")
val soldAssetCode: String?

The asset code that was sold (for non-native assets)

Link copied to clipboard
@SerialName(value = "sold_asset_issuer")
val soldAssetIssuer: String?

The asset issuer that was sold (for non-native assets)

Link copied to clipboard
@SerialName(value = "sold_asset_type")
val soldAssetType: String

The asset type that was sold

Link copied to clipboard
open override val type: String

Type of effect