LiquidityPoolTradeEffectResponse

@Serializable
@SerialName(value = "liquidity_pool_trade")
data class LiquidityPoolTradeEffectResponse(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 liquidityPool: LiquidityPool, val sold: AssetAmount, val bought: AssetAmount) : EffectResponse

Represents liquidity_pool_trade effect response.

This effect occurs when a trade is executed against a liquidity pool.

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, liquidityPool: LiquidityPool, sold: AssetAmount, bought: AssetAmount)

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")
val bought: AssetAmount

The asset 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 = "liquidity_pool")
val liquidityPool: LiquidityPool

The liquidity pool information

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

A cursor value for use in pagination

Link copied to clipboard
@SerialName(value = "sold")
val sold: AssetAmount

The asset sold

Link copied to clipboard
open override val type: String

Type of effect